From fb423b4efcf8f46ddeec71932c1812e0ed98d472 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 14 Jul 2022 11:34:37 -0600 Subject: [PATCH] Et2Widget: If an attribute / property is already an object, don't try to transform it before setting --- api/js/etemplate/Et2Widget/Et2Widget.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index cd16ad159f..26ae2b9d30 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -1385,6 +1385,9 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes) attrValue = et2_compileLegacyJS(attrValue, widget, widget); } break; + case Object: + // Leave it alone... + break; default: attrValue = mgr ? mgr.expandName("" + attrValue) : attrValue; if(attrValue && typeof attrValue == "string" && !attributes.no_lang && widget_class.translate[attribute])