Skip to content

Commit 70b80a7

Browse files
Fix default value handling in satisfaction.php
When a note is selected the value is undefined because is taking "" as value and Toolbox::isFloat() error is pop
1 parent 11eca5f commit 70b80a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ajax/satisfaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
if (isset($_POST['action_default_value'])) {
3333
Dropdown::showNumber('default_value', ['max' => $_POST['default_value'],
3434
'min' => 1,
35-
'value' => $_POST['value']]);
35+
'value' => ($_POST['value'] == '') ? 1 : (int) $_POST['value']]);
3636
}

0 commit comments

Comments
 (0)