Author: ralfbecker
New Revision: 55812
URL: http://svn.stylite.de/viewvc/egroupware?rev=55812&view=rev
Log:
fix autorepeated id “cat[3]” would pick array element 3 from cat
Modified:
trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js
— trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_selectbox.js Sat Apr 23 18:11:28 2016
@@ -882,7 +882,9 @@
// Try first according to ID
content_options = widget.getArrayMgr(“sel_options”).getEntry(widget.id);
// ID can get set to an array with 0 => ’ ’ - not useful
-
if (content_options && (content_options.length == 1 && typeof content_options[0] == 'string' && content_options[0].trim() == '' ||
-
// eg. autorepeated id "cat[3]" would pick array element 3 from cat
-
typeof content_options.value != 'undefined' && typeof content_options.label != 'undefined' && widget.id.match(/\[\d+\]$/)))
{
content_options = null;
}
@@ -918,7 +920,7 @@
// Double check, might have found a normal parent namespace ( eg subgrid in subgrid[selectbox] )
// with an empty entry for the selecbox. If there were valid options here,
// we would have found them already, and keeping this would result in the ID as an option
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs