From 8f256fe201230c8e12b8e24d66d3105e1822909e Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Tue, 16 Jun 2020 12:20:56 -0400 Subject: [PATCH] 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 --- 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 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 %] -- 2.11.0