From d56044fb00764dae9a60404a7aa73bd3fe8c45db Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 5 Oct 2010 14:15:40 +0000 Subject: [PATCH] avoid running activated hook when in dry run mode git-svn-id: svn://svn.open-ils.org/ILS/trunk@18165 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm index f6c07cae6e..e3f8ae3f53 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm @@ -2238,7 +2238,7 @@ sub activate_purchase_order_impl { } # tell the world we activated a PO - $U->create_events_for_hook('acqpo.activated', $po, $po->ordering_agency); + $U->create_events_for_hook('acqpo.activated', $po, $po->ordering_agency) unless $dry_run; return undef; } -- 2.11.0