LP#1816475: (follow-up) remove stray bare "ngModel"
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 14:44:28 +0000 (10:44 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 14:47:08 +0000 (10:47 -0400)
Including this in the field template for editing end_time
had the effect of forcing the end date to be set to the
current time instead of the current value of that field,
which is unusual behavior. It also caused the form to
have an automatically-invalid input state when editing
a reservation with a start time that falls in the future.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html

index 378e15b..a0579b5 100644 (file)
@@ -58,7 +58,6 @@
 <ng-template #endTimeTemplate let-field="field" let-record="record">
   <eg-datetime-select
     domId="endTime"
-    ngModel
     [showTZ]="editDialog.timezone"
     [timezone]="editDialog.timezone"
     [egNotBeforeMoment]="momentizeIsoString(record['start_time'](), editDialog.timezone)"