From 9cc4026bb410693705c96597d08f5d0ef9b54631 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 8 Apr 2024 00:00:00 +0000 Subject: [PATCH] Checked value of resource template select before setting default user param. --- application/view/common/resource-fields.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/view/common/resource-fields.phtml b/application/view/common/resource-fields.phtml index fe23a88f90..206de136ac 100644 --- a/application/view/common/resource-fields.phtml +++ b/application/view/common/resource-fields.phtml @@ -18,7 +18,7 @@ if (isset($resource)) { if ($owner = $resource->owner()) { $ownerSelect->setValue($owner->id()); } -} else { +} elseif (!$resourceTemplateSelect->getValue()) { // Set the logged in user's default template when adding a resource. $resourceTemplateSelect->setValue($this->userSetting('default_resource_template')); }