mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
Only warn about attribute type mismatch if there is a value
This commit is contained in:
parent
90fa3a8287
commit
76644166e8
@ -95,10 +95,12 @@ function et2_checkType(_val, _type, _attr, _cname)
|
|||||||
function _err() {
|
function _err() {
|
||||||
var res = et2_typeDefaults[_type];
|
var res = et2_typeDefaults[_type];
|
||||||
|
|
||||||
egw.debug("warn", "'" + _val + "' was not of specified _type '" +
|
if(typeof _val != "undefined" && _val)
|
||||||
_type + (_attr != null ? "' for attribute '" + _attr + "' " : "") +
|
{
|
||||||
"and is now '" + res + "'");
|
egw.debug("warn", "'" + _val + "' was not of specified _type '" +
|
||||||
|
_type + (_attr != null ? "' for attribute '" + _attr + "' " : "") +
|
||||||
|
"and is now '" + res + "'");
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user