Respect activate_po option in interface
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 11 Aug 2010 15:57:14 +0000 (15:57 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 11 Aug 2010 15:57:14 +0000 (15:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17171 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm

index 02b6283..d67091f 100644 (file)
@@ -1274,7 +1274,7 @@ sub upload_records {
         $mgr->respond;
        }
 
-    my $die_event = activate_purchase_order_impl($mgr, $po->id) if $po;;
+    my $die_event = activate_purchase_order_impl($mgr, $po->id) if $po and $activate_po;
     return $die_event if $die_event;
 
        $e->commit;