mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:04 +01:00
Avoid JS errors if value is not a string
This commit is contained in:
parent
31e476089c
commit
af33cec90d
@ -1387,7 +1387,7 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
attrValue = mgr ? mgr.expandName("" + attrValue) : attrValue;
|
attrValue = mgr ? mgr.expandName("" + attrValue) : attrValue;
|
||||||
if(attrValue && !attributes.no_lang && widget_class.translate[attribute])
|
if(attrValue && typeof attrValue == "string" && !attributes.no_lang && widget_class.translate[attribute])
|
||||||
{
|
{
|
||||||
// allow attribute to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
|
// allow attribute to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
|
||||||
if(attrValue.indexOf('{') !== -1)
|
if(attrValue.indexOf('{') !== -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user