mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Et2Widget: Fix widgets could not pull objects from content to use as attributes
et2-vfs-mime for files in kanban is an example
This commit is contained in:
parent
080dea2378
commit
4d8bd89952
@ -1438,8 +1438,12 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
|
||||
break;
|
||||
case Object:
|
||||
case Array:
|
||||
// Leave it alone...
|
||||
// Leave it alone if it's not a string
|
||||
if(typeof attrValue !== "string")
|
||||
{
|
||||
break;
|
||||
}
|
||||
// fall through to look in content
|
||||
default:
|
||||
attrValue = mgr ? mgr.expandName("" + attrValue) : attrValue;
|
||||
if(attrValue && typeof attrValue == "string" && widget_class.translate[attribute])
|
||||
|
Loading…
Reference in New Issue
Block a user