fix missing user-array for output in ticket-overview, fixes #1412
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -313,11 +313,20 @@ if ($page == 'overview') {
|
|||||||
if ($subticket->Get('by') == '1') {
|
if ($subticket->Get('by') == '1') {
|
||||||
$by = $lng['ticket']['staff'];
|
$by = $lng['ticket']['staff'];
|
||||||
} else {
|
} else {
|
||||||
|
$cid = $subticket->Get('customer');
|
||||||
|
$usr_stmt = Database::prepare('
|
||||||
|
SELECT `customerid`, `firstname`, `name`, `company`, `loginname`
|
||||||
|
FROM `' . TABLE_PANEL_CUSTOMERS . '`
|
||||||
|
WHERE `customerid` = :customerid '
|
||||||
|
);
|
||||||
|
$usr = Database::pexecute_first($usr_stmt, array("customerid" => $cid));
|
||||||
$by = getCorrectFullUserDetails($usr);
|
$by = getCorrectFullUserDetails($usr);
|
||||||
}
|
}
|
||||||
|
|
||||||
$subject = $subticket->Get('subject');
|
$subject = $subticket->Get('subject');
|
||||||
$message = $subticket->Get('message');
|
$message = $subticket->Get('message');
|
||||||
|
|
||||||
|
$row2 = htmlentities_array($row2);
|
||||||
eval("\$ticket_replies.=\"" . getTemplate("tickets/tickets_tickets_list") . "\";");
|
eval("\$ticket_replies.=\"" . getTemplate("tickets/tickets_tickets_list") . "\";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user