[open-ils-commits] r19744 - branches/rel_1_6/Open-ILS/web/reports (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 14 21:39:09 EDT 2011
Author: dbs
Date: 2011-03-14 21:39:07 -0400 (Mon, 14 Mar 2011)
New Revision: 19744
Modified:
branches/rel_1_6/Open-ILS/web/reports/oils_rpt_folders.js
Log:
Prevent creation of report folders with empty folder names
Addresses LP # 720755. Clicking the "Create Folder" button when
no folder name has been supplied is now a no-op.
Modified: branches/rel_1_6/Open-ILS/web/reports/oils_rpt_folders.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/reports/oils_rpt_folders.js 2011-03-15 01:38:35 UTC (rev 19743)
+++ branches/rel_1_6/Open-ILS/web/reports/oils_rpt_folders.js 2011-03-15 01:39:07 UTC (rev 19744)
@@ -141,6 +141,12 @@
folder.owner(USER.id());
folder.parent(null);
+
+ /* Protect against empty folder names */
+ if (!DOM.oils_rpt_top_folder_name.value) {
+ return;
+ }
+
folder.name(DOM.oils_rpt_top_folder_name.value);
folder.shared(getSelectorVal(DOM.oils_rpt_top_folder_shared));
More information about the open-ils-commits
mailing list