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 <mrylander@gmail.com>
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 %]