Ignore:
Timestamp:
12/22/15 16:35:18 (9 years ago)
Author:
nanardon
Message:

Add trace about change

File:
1 edited

Legend:

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

    r1522 r1523  
    194194    if ($expire != $nextexpire) { 
    195195        $user->set_fields(expire => $endemploy); 
     196        $user->ReportChange('Update', 'Expire update to %s to match employment', $endemploy); 
    196197    } 
    197198 
     
    215216 
    216217    if (keys %attrsets) { 
    217         return $user->set_fields(%attrsets); 
     218        if (my $res = $user->set_fields(%attrsets)) { 
     219            $user->ReportChange('Update', 'Attr %s updated to match Employment %s', join(', ', sort keys %attrsets), $self->id); 
     220            return $res; 
     221        } 
    218222    } else { 
    219223        return 1; 
Note: See TracChangeset for help on using the changeset viewer.