Skip to content

Commit

Permalink
Correct labels for read-only fields - e.g. Jobs UI (CFM-252) (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Mar 23, 2023
1 parent c048c8b commit 25784ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/View/Helper/FieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,7 @@ protected function formNameDiv(string $fieldName, string $labelText=null): strin

return '<div class="field-name">
<div class="field-title">'
. ($this->editable
? $this->Form->label($fn, $label)
: $label)
. $this->Form->label($fn, $label)
. ($this->editable
&& in_array($fn, $this->reqFields)
? ' <span class="required">*</span>'
Expand Down

0 comments on commit 25784ad

Please sign in to comment.