From: erickson Date: Thu, 24 Jul 2008 14:18:31 +0000 (+0000) Subject: returning the lineitem attr id on success instead of 1 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a7e320debdb5e58e148eb248ab9fc2b8e74f9909;p=Evergreen.git returning the lineitem attr id on success instead of 1 git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10109 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm index 0cfa9a217b..d534485b8b 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm @@ -688,7 +688,7 @@ __PACKAGE__->register_method( {desc => 'Attr name', type => 'string'}, {desc => 'Attr value', type => 'string'} ], - return => {desc => '1 on success, Event on error'} + return => {desc => 'ID of the attr object on success, Event on error'} } ); @@ -721,7 +721,7 @@ sub set_lineitem_attr { } $e->commit; - return 1; + return $attr->id; }