From d2c2dde383ba2cdbd68a8402dc55f81ef0798c93 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 20 Mar 2019 13:56:15 -0600 Subject: [PATCH] Avoid errors if widget has a modification on a sub-widget named 'type' --- api/js/etemplate/et2_core_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_core_widget.js b/api/js/etemplate/et2_core_widget.js index 148bd02cea..fc3c0623ff 100644 --- a/api/js/etemplate/et2_core_widget.js +++ b/api/js/etemplate/et2_core_widget.js @@ -700,7 +700,7 @@ var et2_widget = (function(){ "use strict"; return ClassWithAttributes.extend( var entry = modifications.getRoot().getEntry(_node.getAttribute("id")); } } - if(entry && entry.type) + if(entry && entry.type && typeof entry.type === 'string') { _nodeName = attributes["type"] = entry.type; }