Skip to content

Commit

Permalink
#1680 [Control] fix: verdict update if null
Browse files Browse the repository at this point in the history
  • Loading branch information
theodaviddd committed Sep 3, 2024
1 parent 5bdd7f6 commit 1b62bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/control/control_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
if ($action == 'confirm_setVerdict' && $permissiontosetverdict && !GETPOST('cancel', 'alpha')) {
$object->fetch($id);
if (!$error) {
$object->verdict = GETPOST('verdict', 'int');
$object->verdict = GETPOST('verdict', 'int') ?: null;
$object->note_public .= (!empty($object->note_public) ? chr(0x0A) : '') . GETPOST('noteControl');
$result = $object->update($user);
if ($result > 0) {
Expand Down

0 comments on commit 1b62bc3

Please sign in to comment.