Skip to content

Commit

Permalink
Restore required flag on fields in Add/Edit views (CFM-503) (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Mar 13, 2026
1 parent 822a6ed commit 9302e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/element/form/nameDiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
// from FieldHelper, then overriding that value if an argument was passed in.
$isRequired = $this->Field->isReqField($fn);

if(isset($vv_field_arguments['fieldOptions']['required'])) {
if(isset($vv_field_arguments['required'])) {
// Use this value (which could be either false or true)
$isRequired = $vv_field_arguments['fieldOptions']['required'];
$isRequired = $vv_field_arguments['required'];
}

// Extra class required for the grouped controls elements
Expand Down

0 comments on commit 9302e2c

Please sign in to comment.