[open-ils-commits] r14424 - trunk/Open-ILS/src/perlmods/OpenILS/Utils (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 14 17:02:20 EDT 2009


Author: erickson
Date: 2009-10-14 17:02:14 -0400 (Wed, 14 Oct 2009)
New Revision: 14424

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
Log:
thinko on rollback vs. commit when creating a local cstoreEditor object for user penalty calculation/creation

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm	2009-10-14 19:47:19 UTC (rev 14423)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm	2009-10-14 21:02:14 UTC (rev 14424)
@@ -17,10 +17,10 @@
 sub calculate_penalties {
     my($class, $e, $user_id, $context_org) = @_;
 
-    my $rollback = 0;
+    my $commit = 0;
     unless($e) {
         $e = new_editor(xact =>1);
-        $rollback = 1;
+        $commit = 1;
     }
 
     my $penalties = $e->json_query({from => ['actor.calculate_system_penalties',$user_id, $context_org]});
@@ -60,7 +60,7 @@
         }
     }
 
-    $e->rollback if $rollback;
+    $e->commit if $commit;
     return undef;
 }
 



More information about the open-ils-commits mailing list