[open-ils-commits] r9230 - branches/rel_1_2/Open-ILS/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 4 12:26:37 EDT 2008


Author: phasefx
Date: 2008-04-04 11:50:01 -0400 (Fri, 04 Apr 2008)
New Revision: 9230

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
oops, missed porting this.  Disallow today's date

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/holds.js	2008-04-04 15:30:43 UTC (rev 9229)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/holds.js	2008-04-04 15:50:01 UTC (rev 9230)
@@ -672,7 +672,7 @@
                                 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;



More information about the open-ils-commits mailing list