rolling back xact created by scriptbuilder
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Sep 2006 12:41:44 +0000 (12:41 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Sep 2006 12:41:44 +0000 (12:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6092 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/PermitHold.pm

index f818e6f..0489797 100644 (file)
@@ -81,6 +81,8 @@ sub permit_copy_hold {
        my %hash = map { ($_->{ilsevent} => $_) } @allevents;
        @allevents = values %hash;
 
+       $ctx->{editor}->rollback if $ctx->{editor};
+
        $runner->cleanup;
 
        return \@allevents if $$params{show_event_list};