We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11eca5f + 70b80a7 commit 27dac53Copy full SHA for 27dac53
1 file changed
ajax/satisfaction.php
@@ -32,5 +32,5 @@
32
if (isset($_POST['action_default_value'])) {
33
Dropdown::showNumber('default_value', ['max' => $_POST['default_value'],
34
'min' => 1,
35
- 'value' => $_POST['value']]);
+ 'value' => ($_POST['value'] == '') ? 1 : (int) $_POST['value']]);
36
}
0 commit comments