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 (