[open-ils-commits] r19741 - trunk/Open-ILS/web/reports (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 14 21:37:29 EDT 2011
Author: dbs
Date: 2011-03-14 21:37:28 -0400 (Mon, 14 Mar 2011)
New Revision: 19741
Modified:
trunk/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: trunk/Open-ILS/web/reports/oils_rpt_folders.js
===================================================================
--- trunk/Open-ILS/web/reports/oils_rpt_folders.js 2011-03-14 17:42:20 UTC (rev 19740)
+++ trunk/Open-ILS/web/reports/oils_rpt_folders.js 2011-03-15 01:37:28 UTC (rev 19741)
@@ -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