Changeset 1134


Ignore:
Timestamp:
09/14/12 11:35:36 (12 years ago)
Author:
nanardon
Message:

Allocate Attribute over object if possible

File:
1 edited

Legend:

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

    r1071 r1134  
    582582    foreach my $attr (sort { $a cmp $b } $base->list_canonical_fields($otype, 
    583583        $config->{only_rw} ? 'rw' : 'r')) { 
    584         my $oattr = $base->attribute($otype, $attr); 
     584        my $oattr = ref $self ? $self->attribute($attr) : $base->attribute($otype, $attr); 
    585585        if (ref $self) { 
    586586            my $val = $self->get_c_field($attr); 
Note: See TracChangeset for help on using the changeset viewer.