From 73723eff5ab9542b45d35605f0108831aa90ff60 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 30 Mar 2023 10:49:56 -0600 Subject: [PATCH] Don't try to load disabled templates Allows us to disable / not load templates even if they have template / ID --- api/js/etemplate/et2_widget_template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_template.ts b/api/js/etemplate/et2_widget_template.ts index 5966d6f350..c2825fdf29 100644 --- a/api/js/etemplate/et2_widget_template.ts +++ b/api/js/etemplate/et2_widget_template.ts @@ -105,7 +105,7 @@ export class et2_template extends et2_DOMWidget this.options = et2_cloneObject(_attrs); _attrs = {}; } - if(this.id != "" || this.options.template) + if((this.id != "" || this.options.template) && !this.options.disabled) { var parts = (this.options.template || this.id).split('?'); var cache_buster = parts.length > 1 ? parts.pop() : null;