From d2e6d5f240c6aadd8f5744e12fb9e6439382079f Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 7 Jan 2022 13:22:53 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1501 --- wire/modules/Fieldtype/FieldtypeFile/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeFile/config.php b/wire/modules/Fieldtype/FieldtypeFile/config.php index 940e986f..c60e74d9 100644 --- a/wire/modules/Fieldtype/FieldtypeFile/config.php +++ b/wire/modules/Fieldtype/FieldtypeFile/config.php @@ -433,7 +433,7 @@ class FieldtypeFileConfiguration extends Wire { $f->val(0); } else if(!$customTpl) { // create custom template - $customTpl = $templates->add($customTplEnabledName); + $customTpl = $templates->add($customTplEnabledName, array('noGlobal' => true)); $this->message(sprintf($this->_('Created custom fields template: %s'), $customTpl->name)); }