Correct the subquery for A/T opt_in_setting
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Sep 2010 19:16:57 +0000 (19:16 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Sep 2010 19:16:57 +0000 (19:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18041 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm

index 615295c..8b8e982 100644 (file)
@@ -469,7 +469,7 @@ sub create_batch_events {
                 '-exists' => {
                     from  => 'aus',
                     where => {
-                        name => $def->id,
+                        name => $def->opt_in_setting,
                         usr  => { '=' => { '+' . $hook_hash{$def->hook}->core_type => $def->usr_field } },
                         value=> 'true'
                     }