interchange / interchange6-schema

DBIC schema for Interchange 6
8 stars 7 forks source link

Base::Attribute::find_attribute_value in list context when no value found #93

Closed murwiz closed 10 years ago

murwiz commented 10 years ago

Consider a code fragment like this:

my $hash = { no_such_key => $obj->find_attribute_value('no_such_key') };

If there is no corresponding row for this attribute, this will cause a warning about "Odd number of elements in anonymous hash". I believe this is because the helper is using a "naked" return instead of:

return undef;

hexfusion commented 10 years ago

Thanks Jeff.