Is there a reason behind this condition for linking tickets?
else if($type == "LinkTicket") { $Ticket = new Ticket($_POST[POST_INTERN_PROCESS_TICKET_ACTIONS . "_" . $count . "_vd_0"],""); $TicketSub = new Ticket($_POST[POST_INTERN_PROCESS_TICKET_ACTIONS . "_" . $count . "_vd_1"],""); $counts[$Ticket->Id]=Ticket::GetMessageCount($Ticket->Id); $counts[$TicketSub->Id]=Ticket::GetMessageCount($TicketSub->Id); if($counts[$Ticket->Id] > $counts[$TicketSub->Id]) $Ticket->LinkTicket($TicketSub->Id, getId(32)); else $TicketSub->LinkTicket($Ticket->Id, getId(32)); $Ticket->SetLastUpdate(time()); }
Is there any problem if I remove the condition and let the operator to decide which will be the container, not the number of messages?
Any other place to modify the code to reflect this mod?
Thank you!