Skip to content

Commit

Permalink
Checked value of resource template select before setting default user…
Browse files Browse the repository at this point in the history
… param.
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Apr 8, 2024
1 parent 2c1e292 commit 9cc4026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/view/common/resource-fields.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit 9cc4026

Please sign in to comment.