From: Mike Rylander Date: Tue, 16 Jun 2020 16:20:56 +0000 (-0400) Subject: LP#1879983: Don't use the input parameter to set the default date X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f256fe201230c8e12b8e24d66d3105e1822909e;p=working%2FEvergreen.git LP#1879983: Don't use the input parameter to set the default date If there is an appointment without a selected time slot, do not preselect the current date as if this were the second step in the process. Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 index 24a937be39..f0c8952561 100644 --- a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 @@ -74,7 +74,7 @@ IF appointment; cs_slot = appointment; cs_slot_id = appointment.id; - cs_date = date.format(ctx.parse_datetime(appointment.slot),'%F'); + IF appointment.slot; cs_date = date.format(ctx.parse_datetime(appointment.slot),'%F'); END; IF appointment.slot; cs_time = date.format(ctx.parse_datetime(appointment.slot),'%T'); END; cs_notes = appointment.notes; END %]