From 9a7033ece9302c67cadc84fa883e858e562797eb Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 27 Feb 2014 21:26:10 +0000 Subject: [PATCH] Fix bug in calculating readonly based on parent. Fixes readonly templates still having editable content. --- etemplate/js/et2_core_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index da4ae7fe3b..ba6b4016fd 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -643,7 +643,7 @@ var et2_widget = Class.extend( var readonly = attributes["readonly"] = this.getArrayMgr("readonlys").isReadOnly( _node.getAttribute("id"), _node.getAttribute("readonly"), - this.readonly); + typeof this.readonly !== 'undefined' ? this.readonly : this.options.readonly ); // Check to see if modifications change type var modifications = this.getArrayMgr("modifications");