Skip to content

Commit 3b860b9

Browse files
authored
Fix(Ticket): followup duplication if ticket is pending (#22847)
1 parent 2b4d9da commit 3b860b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

front/itilfollowup.form.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@
6868
$redirect = $track->getFormURLWithID($fup->getField('items_id'));
6969
$handled = true;
7070
} elseif (
71-
isset($_POST['add_close'])
72-
|| isset($_POST['add_reopen'])
71+
(
72+
isset($_POST['add_close'])
73+
|| isset($_POST['add_reopen'])
74+
)
75+
&& !isset($_POST['update'])
76+
&& empty($_POST['id'])
7377
) {
7478
if ($track->getFromDB($_POST['items_id']) && (method_exists($track, 'canApprove') && $track->canApprove())) {
7579
$fup->add($_POST);

0 commit comments

Comments
 (0)