[Vtigercrm-commits] [vtiger development] #6042: Error in detailview ticket from Customer Portal
vtiger development
vtiger-tickets at trac.vtiger.com
Fri Jun 12 05:01:36 EDT 2009
#6042: Error in detailview ticket from Customer Portal
------------------------------+---------------------------------------------
Reporter: Pierluigi.Bucolo | Owner: developer
Type: defect | Status: new
Priority: critical | Milestone: 5.1.0
Component: customerportal | Version: 5.1.0-val2
Keywords: |
------------------------------+---------------------------------------------
It's impossible to view the Detail of some tickets, because appear this
error:
ERROR MESSAGE:
Warning: Invalid argument supplied for foreach() in
/home/mhd-00/www.kalatambiente.net/htdocs/cittadino/HelpDesk/TicketDetail.php
on line 56
The rows affected in the code are:
foreach($ticketinfo as $key=>$value) { // This is the row 56
$fieldlabel = $value['fieldlabel'];
$fieldvalue = $value['fieldvalue'];
if ($fieldlabel == 'Status') {
$ticket_status = $fieldvalue;
break;
}
}
I'm using this instruction to debug the code:
$ticketscount = count($result);
echo "Count Result=$ticketscount <br />";
For working ticket the output is:
ticketinfo=Array[HelpDesk]
for NOT working ticket output is:
ticketinfo=[HelpDesk]
I think this could be the trouble.. but this issue is only for some
tickets.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6042>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list