Skip to content

Commit a175540

Browse files
committed
BUG: complete / reopen comment check was not aware of recent comments from other users
1 parent a027903 commit a175540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Controllers/TicketsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ public function complete(Request $request, $id)
22762276
*/
22772277
public function complete_change_actions($ticket, $member, $member_reason = false, $a_clarification = false)
22782278
{
2279-
$latest = Models\Comment::where('ticket_id', $ticket->id)->where('user_id', $this->member->id)->orderBy('id', 'desc')->first();
2279+
$latest = Models\Comment::where('ticket_id', $ticket->id)->orderBy('id', 'desc')->first();
22802280

22812281
if ($latest and in_array($latest->type, ['complete', 'reopen'])) {
22822282
// Delete last comment for consecutive complete-reopen

0 commit comments

Comments
 (0)