Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy committed Feb 14, 2020
1 parent 72e779b commit c42676a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libraries/src/Form/FormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,12 +1215,6 @@ protected function getLayoutData()

$alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname);

// Casting false as string returns an empty string so assign it 0
if ($this->value === false)
{
$this->value = '0';
}

return array(
'autocomplete' => $this->autocomplete,
'autofocus' => $this->autofocus,
Expand Down

0 comments on commit c42676a

Please sign in to comment.