Skip to content

Commit

Permalink
Types fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 13, 2024
1 parent 52ac5d3 commit f95afb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion galette/lib/Galette/DynamicFields/DynamicField.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,11 @@ public function check(array $values): bool
}
}

$this->required = $values['field_required'] ?? false;
if (isset($values['field_required'])) {
$this->required = $values['field_required'] == 1;
} else {
$this->required = false;
}

$this->width_in_forms = $values['field_width_in_forms'] ?? 1;

Expand Down

0 comments on commit f95afb9

Please sign in to comment.