From: Galen Charlton <gmc@equinoxinitiative.org>
Date: Fri, 6 Sep 2019 14:44:28 +0000 (-0400)
Subject: LP#1816475: (follow-up) remove stray bare "ngModel"
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e00767dd1961aa757150518b8646d83d1660bf8e;p=contrib%2FConifer.git

LP#1816475: (follow-up) remove stray bare "ngModel"

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>
---

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
index 378e15bf41..a0579b5fc3 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.html
@@ -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)"