Skip to content

Commit

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

if ($input['default_values'] != '' && !$this->isValidValue($input['default_values'])) {
if (!$this->isValidValue($input['default_values'])) {
Session::addMessageAfterRedirect(
__('The default value is invalid:', 'formcreator') . ' ' . $input['name'],
false,
Expand Down

0 comments on commit 0100715

Please sign in to comment.