Skip to content

Commit

Permalink
Revert "fix(radiosfield, selectfield): check default value before save"
Browse files Browse the repository at this point in the history
This reverts commit d4a2ecb.
  • Loading branch information
btry committed Apr 17, 2023
1 parent 0100715 commit 7df2f7a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions inc/field/radiosfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,6 @@ public function prepareQuestionInputForSave($input) {
$input['values'] = $this->trimValue($input['values']);
$input['default_values'] = trim($input['default_values']);

if (!$this->isValidValue($input['default_values'])) {
Session::addMessageAfterRedirect(
__('The default value is invalid:', 'formcreator') . ' ' . $input['name'],
false,
ERROR
);
return [];
}

return $input;
}

Expand Down

0 comments on commit 7df2f7a

Please sign in to comment.