From 9f8c5af937b78f9e93c9569c15a9ae6269de62aa Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 21 Dec 2016 15:36:13 -0700 Subject: [PATCH] Avoid an error in etemplate2 if content is not set --- api/js/etemplate/et2_widget_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_dialog.js b/api/js/etemplate/et2_widget_dialog.js index 3f746e259d..f6f1493ae9 100644 --- a/api/js/etemplate/et2_widget_dialog.js +++ b/api/js/etemplate/et2_widget_dialog.js @@ -444,7 +444,7 @@ var et2_dialog = (function(){ "use strict"; return et2_widget.extend( if(template.indexOf('.xet') > 0) { // File name provided, fetch from server - this.template.load("",template,this.options.value||{}, jQuery.proxy(function() { + this.template.load("",template,this.options.value||{content: {}}, jQuery.proxy(function() { // Set focus to the first input jQuery('input',this.div).first().focus(); },this));