mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
Avoid error if expand finds nothing for the value (returns null)
This commit is contained in:
parent
9a3753eb93
commit
3f71a75c86
@ -1153,7 +1153,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(!attributes.no_lang && widget_class.translate[attribute])
|
if(attrValue && !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…
x
Reference in New Issue
Block a user