Changeset 2144


Ignore:
Timestamp:
06/26/18 18:45:48 (6 years ago)
Author:
nanardon
Message:

reset expire to previous status is no employment apply

File:
1 edited

Legend:

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

    r2141 r2144  
    16481648    } 
    16491649 
     1650    # Managing expire: 
     1651    # If we found next status apply, keep it for expiration 
     1652    # Otherwise we reset to previous end of status 
     1653 
     1654    if (my $expire = $self->_computeEndEmployment($self->base->config('employment_delay') || 0)) { 
     1655        $changes{ 'expire' } = $expire; 
     1656    } elsif (my $expiren = $self->_computeEndEmployment($self->base->config('employment_delay') || 0, 1)) { 
     1657        $changes{ 'expire' } = $expiren; 
     1658    } 
     1659 
    16501660    if (%changes) { 
    16511661        if ($self->set_fields(%changes)) { 
Note: See TracChangeset for help on using the changeset viewer.