From: phasefx Date: Fri, 4 Apr 2008 15:50:01 +0000 (+0000) Subject: oops, missed porting this. Disallow today's date X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=df7cc1cd8ddc19d5c032981f7527f99bd49a2f5a;p=Evergreen.git oops, missed porting this. Disallow today's date git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9230 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 9ef912d666..e6f2dc9172 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -672,7 +672,7 @@ patron.holds.prototype = { function check_date(value) { try { if (! util.date.check('YYYY-MM-DD',value) ) { throw('Invalid Date'); } - if (util.date.check_past('YYYY-MM-DD',value) ) { + if (util.date.check_past('YYYY-MM-DD',value) || util.date.formatted_date(new Date(),'%F') == value ) { throw('Activation date for suspended holds needs to be after today.'); } return true;