LP#1766716 Closed dates API emergency filter fix
authorBill Erickson <berickxx@gmail.com>
Mon, 9 Jul 2018 15:55:07 +0000 (11:55 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 26 Jul 2018 18:59:15 +0000 (14:59 -0400)
Fix closed dates emergency => emergency_closing DB column name thinko.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/ClosedDates.pm

index 2c3722c..bc87abe 100644 (file)
@@ -141,7 +141,7 @@ sub fetch_dates {
         [{ 
             '-or' => [
                 { close_start => { ">=" => $start }, close_end => { "<=" => $end } },
-                { emergency => { "!=" => undef }, "+aec" => { process_end_time => { "=" => undef } } }
+                { emergency_closing => { "!=" => undef }, "+aec" => { process_end_time => { "=" => undef } } }
             ],
             org_unit => $org,
         }, {flesh        => 2,