app/Itil/Controllers/UtilityController.php 1 location
|
@@ 104-110 (lines=7) @@
|
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public static function getRelationOfTicketByTable($ticketid, $table) { |
| 105 |
|
$realtions = new \App\Itil\Models\Common\TicketRelation(); |
| 106 |
|
$realtion = $realtions->where('ticket_id', $ticketid)->where('owner', 'LIKE', $table . "%")->first(); |
| 107 |
|
if ($realtion) { |
| 108 |
|
return $realtion; |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
public static function getTicketByThreadId($threadid) { |
| 113 |
|
$thread = \App\Model\helpdesk\Ticket\Ticket_Thread::where('id', $threadid)->first(); |
app/Plugins/ServiceDesk/Controllers/Library/UtilityController.php 1 location
|
@@ 98-104 (lines=7) @@
|
| 95 |
|
return $asset; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
public static function getRelationOfTicketByTable($ticketid,$table) { |
| 99 |
|
$realtions = new \App\Plugins\ServiceDesk\Model\Common\TicketRelation(); |
| 100 |
|
$realtion = $realtions->where('ticket_id',$ticketid)->where('owner','LIKE',$table."%")->first(); |
| 101 |
|
if($realtion){ |
| 102 |
|
return $realtion; |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
public static function getTicketByThreadId($threadid) { |
| 107 |
|
$thread = \App\Model\helpdesk\Ticket\Ticket_Thread::where('id', $threadid)->first(); |