Ignore:
Timestamp:
05/19/12 11:38:41 (12 years ago)
Author:
nanardon
Message:
  • fix attributes object return in some, simplify code
File:
1 edited

Legend:

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

    r990 r1002  
    505505    } else { 
    506506        my $obj = $self->oobject; 
    507         return $obj 
     507        my $oo = $obj 
    508508            ? $obj->attribute($attrname) 
    509509            : $self->base->attribute($self->otype, $attrname); 
     510        return $oo || $self->base->attribute($self->otype, { name => $attrname }); 
    510511    } 
    511512} 
Note: See TracChangeset for help on using the changeset viewer.