[open-ils-commits] r17766 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 17 13:11:06 EDT 2010
Author: erickson
Date: 2010-09-17 13:11:03 -0400 (Fri, 17 Sep 2010)
New Revision: 17766
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
Log:
back-port: 17765 => protect against fetching lineitem details by ref instead of ID
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-09-17 17:10:13 UTC (rev 17765)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-09-17 17:11:03 UTC (rev 17766)
@@ -658,7 +658,9 @@
]);
}
- unless(ref $lid and ref $lid->fund) {
+ if(ref $lid) {
+ $lid->fund($mgr->editor->retrieve_acq_fund($lid->fund)) unless(ref $lid->fund);
+ } else {
$lid = $mgr->editor->retrieve_acq_lineitem_detail([
$lid,
{ flesh => 1,
More information about the open-ils-commits
mailing list