Ignore:
Timestamp:
09/01/16 16:59:26 (8 years ago)
Author:
nanardon
Message:

Fix expire date not reset when unlimited statut is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm

    r1827 r1836  
    14811481    ); 
    14821482 
     1483    # TODO rework this working code but bloat 
    14831484    if ($expireOn ne 'never') { 
    14841485        my $endemploy = ''; 
    14851486        if ($self->_get_attributes("_$end2start{$expireOn}")) { 
    1486             $endemploy = $self->_get_attributes("_$expireOn") || 'UNCHANGED'; 
     1487            $endemploy = $self->_get_attributes("_$expireOn") || ''; 
     1488            $endemploy ||= 'UNCHANGED' unless($currentemployment); 
    14871489        } elsif (($self->base->config('unemployed_expire') ||'') eq 'no') { 
    14881490            $endemploy = ''; 
Note: See TracChangeset for help on using the changeset viewer.