LP#1791340 Webstaff: Don't backdate when we're not user/dbwells/lp1791340_webstaff_dont_always_send_backdate
authorDan Wells <dbw2@calvin.edu>
Fri, 21 Sep 2018 14:45:59 +0000 (10:45 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 21 Sep 2018 14:45:59 +0000 (10:45 -0400)
commitbed9df9afa1c627fefad90a7eb77f5c8e751c520
treea642f233fc3a9ec866719cfb188b8f200ea0c926
parent437e7f826a9a36be2db65f96ad6862c9bea1094d
LP#1791340 Webstaff: Don't backdate when we're not

There was code in the webstaff checkin interface which attempted to
remove the backdate parameter when it wasn't needed, as its mere
presence has a negative effect on the checkin process.  This fail-safe
was not working, however.

Instead, let's build on the same check function used for the display,
so we can be more sure that if the user doesn't see that they are
backdating, the interface will not treat it as a backdate, and
vice-versa.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js