Skip to content

Commit

Permalink
Merge pull request #1627 from Daniel-KM/fix/user_template
Browse files Browse the repository at this point in the history
Sorted resource templates in the user form.
  • Loading branch information
zerocrates authored Sep 8, 2020
2 parents 2f3eba1 + 033c6e6 commit a09414d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/src/Form/UserForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ public function init()
'empty_option' => '',
'resource_value_options' => [
'resource' => 'resource_templates',
'query' => [],
'query' => [
'sort_by' => 'label',
],
'option_text_callback' => function ($resourceTemplate) {
return $resourceTemplate->label();
},
Expand Down

0 comments on commit a09414d

Please sign in to comment.