Ignore:
Timestamp:
02/14/17 21:39:12 (7 years ago)
Author:
nanardon
Message:

Cleanup useless code

File:
1 edited

Legend:

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

    r1949 r1950  
    15301530    my ($self) = @_; 
    15311531 
     1532    # Get current employment name 
    15321533    my $currentempl = $self->get_attributes('currentEmployment') || ''; 
    15331534 
     
    15401541 
    15411542    if (my $currentemployment = $self->base->get_object('employment', $currentempl)) { 
     1543 
     1544        # If an employement apply we set the value to the user object 
     1545 
    15421546        $self->computeEmploymentDate; 
    15431547 
     
    15741578        } 
    15751579    } else { 
     1580        # No current employment, resetting values: 
     1581 
    15761582        return $self->_resetEmployment; 
    15771583    } 
    15781584 
    15791585} 
     1586 
     1587# Reset attribute value set by employment 
     1588# except maangerContact and expire 
    15801589 
    15811590sub _resetEmployment { 
Note: See TracChangeset for help on using the changeset viewer.