[open-ils-commits] r17765 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 17 13:10:16 EDT 2010
Author: erickson
Date: 2010-09-17 13:10:13 -0400 (Fri, 17 Sep 2010)
New Revision: 17765
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
Log:
protect against fetching lineitem details by ref instead of ID
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-09-17 16:24:26 UTC (rev 17764)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-09-17 17:10:13 UTC (rev 17765)
@@ -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