Ignore:
Timestamp:
06/19/19 12:05:43 (5 years ago)
Author:
nanardon
Message:

Fix data propagation on object creation

File:
1 edited

Legend:

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

    r2265 r2266  
    399399            return; 
    400400        }; 
     401    } 
     402 
     403    my @parents = $obj->ParentObject; 
     404 
     405    foreach my $pobj (@parents) { 
     406        $pobj->PostSetAttribute; 
    401407    } 
    402408 
     
    799805        } 
    800806    } 
    801     my $res =  $self->set_fields(%data); 
    802  
    803     if (my $obj = $self->ParentObject) { 
    804         $res += $obj->PostSetAttribute; 
     807    my $res = $self->set_fields(%data); 
     808 
     809    if ($res) { 
     810        if (my $obj = $self->ParentObject) { 
     811            $res += $obj->PostSetAttribute; 
     812        } 
    805813    } 
    806814 
Note: See TracChangeset for help on using the changeset viewer.