From bdb03729b7e037690c3ed54bddc391773b272999 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 18 Nov 2019 16:36:08 +0100 Subject: [PATCH] zone_getOptionsForShipment fixes --- db/changes/10081-agency/04-zone_getOptionsForShipment.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/changes/10081-agency/04-zone_getOptionsForShipment.sql b/db/changes/10081-agency/04-zone_getOptionsForShipment.sql index 379429629..c631f8809 100644 --- a/db/changes/10081-agency/04-zone_getOptionsForShipment.sql +++ b/db/changes/10081-agency/04-zone_getOptionsForShipment.sql @@ -43,7 +43,7 @@ BEGIN JOIN zone z ON z.id = t.id JOIN zoneEvent e ON e.zoneFk = t.id JOIN tLandings l ON l.eventFk = e.id - HAVING ( + WHERE ( e.`type` = 'day' AND e.`dated` = l.landed ) OR (