Ignore:
Timestamp:
05/14/09 03:08:41 (15 years ago)
Author:
nanardon
Message:
  • objects::set_fields is called also to terminate work, so always try update, but detect 'no update' error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Ad/objects.pm

    r106 r107  
    120120    my ($self, %fields) = @_; 
    121121 
    122     my $needup = 0; 
    123122    foreach (keys %fields) { 
    124123        $self->get_field_name($_, 'w') or next; 
    125124        $self->_populate_entry($self->{entry}, $_, $fields{$_}); 
    126         $needup = 1; 
    127125    } 
    128126     
    129     $needup or return '0E0'; 
    130127    my $mesg = $self->{entry}->update($self->base->ldap); 
    131128 
    132     if ($mesg->code) { 
     129    if ($mesg->code && $mesg->code != 82) { 
    133130        warn $mesg->error; 
    134131        return; 
Note: See TracChangeset for help on using the changeset viewer.