From: Mike Rylander Date: Mon, 15 Jun 2020 16:14:59 +0000 (-0400) Subject: LP#1879983: Don't generate a time option for null slot time X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f41884f266d6840c639719e076b48dafbb49952c;p=working%2FEvergreen.git 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 --- 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 %]