]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1178802: force ceiling dates to be end of day
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Sep 2017 18:38:18 +0000 (14:38 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 30 Nov 2017 15:13:43 +0000 (10:13 -0500)
commit5cf67e795d7b4dedb22eb74868a31c90370adea8
tree604a27207801a97b5bd6cb51d7d64b128d94b29f
parentb03e8a9ab643440399ca3f30a5a65bbddae3d47c
LP#1178802: force ceiling dates to be end of day

This patch ensures that when a hard due date (or hard due date value)
is created or edited, the ceiling date is set to the end of that day.

This fixes a problem where a ceiling date would not be applied for
loans checked out earlier on the ceiling date itself.

This patch intentionally does not touch existing hard due date
values.  It also does not use the database or middle layer to coerce
the ceiling dates to end of day to leave upon the possiblity that
an Angular version of the hard due date editor will allow operators
to set both date and time. (Note that Dojo does not readily have a
combined date/time picker.)

To test
-------
[1] Apply the patch, then in the hard due date editor, verify that
    when creating a hard due date _value_, the date gets saved as
    ending at 23:59:59 in the local time zone.
[2] Similarly, verify that when editing an existing hard due date value,
    the date gets saved as ending at 23:59:59.
[3] Repeat steps 1 and 2, but this time for hard due dates.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/conify/global/config/hard_due_date.tt2
Open-ILS/src/templates/conify/global/config/hard_due_date_values.tt2