Changeset 1638 for trunk


Ignore:
Timestamp:
01/15/16 18:11:08 (8 years ago)
Author:
nanardon
Message:

Don't touch company and department when user is unemployed

File:
1 edited

Legend:

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

    r1636 r1638  
    4646sub _has_extended_attributes { 1 } 
    4747 
    48 sub _reported_atributes { qw(company contratType department endcircuit hosted) } 
     48sub _reported_atributes { qw(contratType endcircuit hosted) } 
    4949 
    5050sub _get_attr_schema { 
     
    359359        appliedEmployement => $self->id, 
    360360    ); 
    361     foreach my $attr (_reported_atributes(), 'managerContact') { 
     361    foreach my $attr (_reported_atributes(), qw(company department managerContact)) { 
    362362        my $uval = $user->get_attributes($attr) || ''; 
    363363        my $cval = $self->get_attributes($attr) || ''; 
Note: See TracChangeset for help on using the changeset viewer.