Skip to content

Commit

Permalink
#2766 cf2 fiel field required indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Nov 19, 2018
1 parent 7ff3749 commit d1f48a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cf2/Fields/RenderField.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function data()
'fieldLabel' => $this->field['label'],
'fieldCaption' => $this->field['caption'],
'fieldPlaceHolder' => '',
'required' => ! empty($this->field['required'])?true:false,
'isRequired' => ! empty($this->field['required'])?true:false,
'fieldDefault' => isset($this->field['config']['default'])? $this->field['config']['default'] : '',
'fieldValue' => '',
'fieldIdAttr' => $this->field['fieldIdAttr'],
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/RenderFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testData()
'fieldLabel' => 'Email',
'fieldCaption' => 'Make emails',
'fieldPlaceHolder' => '',
'required' => 1,
'isRequired' => 1,
'fieldDefault' => '',
'fieldValue' => '',
'fieldIdAttr' => 'fld_1',
Expand Down

0 comments on commit d1f48a5

Please sign in to comment.