Changeset 1649
- Timestamp:
- 01/21/16 17:22:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1647 r1649 1400 1400 my $currentemployment = $self->get_attributes('currentEmployment') || ''; 1401 1401 1402 my $expire = str2time($self-> get_attributes('expire') || '1970-01-01T00:00:00');1402 my $expire = str2time($self->_get_attributes('expire') || '1970-01-01T00:00:00'); 1403 1403 1404 1404 my %changes; … … 1435 1435 1436 1436 if ($expireOn ne 'never') { 1437 my $endemploy = $self->_get_attributes("_$end2start{$expireOn}") 1438 ? $self->_get_attributes("_$expireOn") 1439 : (($self->base->config('unemployed_expire') ||'') eq 'no' 1440 ? undef 1441 : $self->_get_attributes('create')); 1442 1443 my $nextexpire = str2time( $endemploy || '1970-01-01T00:00:00' ); 1444 1445 if ($expire != $nextexpire) { 1446 $changes{expire} = $endemploy; 1437 my $endemploy; 1438 if ($self->_get_attributes("_$end2start{$expireOn}")) { 1439 $endemploy = $self->_get_attributes("_$expireOn"); 1440 } elsif (($self->base->config('unemployed_expire') ||'') eq 'no') { 1441 $endemploy = undef; 1442 } else { 1443 if ($expire && $expire < time) { 1444 $endemploy = 'UNCHANGED'; 1445 } else { 1446 $endemploy = $self->_get_attributes('create'); 1447 } 1448 } 1449 1450 if ($endemploy ne 'UNCHANGED') { 1451 my $nextexpire = str2time( $endemploy || '1970-01-01T00:00:00' ); 1452 1453 if ($expire != $nextexpire) { 1454 $changes{expire} = $endemploy; 1455 } 1447 1456 } 1448 1457 }
Note: See TracChangeset
for help on using the changeset viewer.