fix_condition.patch

skita, 06/07/2021 04:07 PM

Download (1.02 KB)

View differences:

inc/ticket.class.php
656 656
      }
657 657
      if ($config->getField('ticketsolved_updatetech')) {
658 658
         $ticket_user      = new Ticket_User();
659
         if (!$ticket_user->getFromDBByCrit(['tickets_id' => $ticket->fields['id'],
659
         if ((!$ticket_user->getFromDBByCrit(['tickets_id' => $ticket->fields['id'],
660 660
                                             'type'       => CommonITILActor::ASSIGN])
661 661
             || (isset($ticket_user->fields['users_id'])
662
                 && ($ticket_user->fields['users_id'] != Session::getLoginUserID()))
662
                 && ($ticket_user->fields['users_id'] != Session::getLoginUserID())))
663 663
             && isset($ticket->oldvalues)
664 664
             && !in_array($ticket->oldvalues['status'], array_merge(Ticket::getSolvedStatusArray(),
665 665
                                                                    Ticket::getClosedStatusArray()))