Downgrade error about overwriting value, id exists twice to warning.

Stop warning about duplicate IDs in children of header bar, those values are part of nextmatch.
This commit is contained in:
Nathan Gray 2013-11-08 16:28:07 +00:00
parent 086da0881f
commit ca92b22daf

View File

@ -547,8 +547,12 @@ etemplate2.prototype.getValues = function(_root)
// Check whether the entry is really undefined // Check whether the entry is really undefined
if (typeof _target[id] != "undefined" && (typeof _target[id] != 'object' || typeof value != 'object')) if (typeof _target[id] != "undefined" && (typeof _target[id] != 'object' || typeof value != 'object'))
{ {
egw.debug("error", _widget, "Overwriting value of '" + _widget.id + // Don't warn about children of nextmatch header - they're part of nm value
"', id exists twice!"); if(!_widget.getParent().instanceOf(et2_nextmatch_header_bar))
{
egw.debug("warn", _widget, "Overwriting value of '" + _widget.id +
"', id exists twice!");
}
} }
// Store the value of the widget and reset its dirty flag // Store the value of the widget and reset its dirty flag