From a7e320debdb5e58e148eb248ab9fc2b8e74f9909 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 24 Jul 2008 14:18:31 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.0