We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ab8e2 commit 8087324Copy full SHA for 8087324
inc/question.class.php
@@ -464,12 +464,8 @@ public function prepareInputForUpdate($input) {
464
465
$input = $this->checkBeforeSave($input);
466
467
- if (
468
- !empty($input['default_values'])
469
- && (
470
- $input['fieldtype'] === 'textarea'
471
- || $this->fields['fieldtype'] === 'textarea'
472
- )
+ if (!empty($input['default_values']) &&
+ ($input['fieldtype'] === 'textarea' || $this->fields['fieldtype'] === 'textarea')
473
) {
474
$input['default_values'] = str_replace('\r\n', '', $input['default_values']);
475
}
0 commit comments