From f41884f266d6840c639719e076b48dafbb49952c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 15 Jun 2020 12:14:59 -0400 Subject: [PATCH] LP#1879983: Don't generate a time option for null slot time If there is an appointment without a selected time slot, do not generate a time option for the select dropdown based on the current time. Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 index 38c9005e0b..24a937be39 100644 --- a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 @@ -75,7 +75,7 @@ cs_slot = appointment; cs_slot_id = appointment.id; cs_date = date.format(ctx.parse_datetime(appointment.slot),'%F'); - cs_time = date.format(ctx.parse_datetime(appointment.slot),'%T'); + IF appointment.slot; cs_time = date.format(ctx.parse_datetime(appointment.slot),'%T'); END; cs_notes = appointment.notes; END %]
-- 2.11.0