First of all, what a beautiful and well done API you guys have made. I am having some trouble updating the ticket properties for some reason. This is my code,
CODE
$paramsProps = array('user' => $user,
'password' => $pass,
'email' => 'zcarter@siue.edu',
'ticketId' => $ticketID,
'newStatus' => $_POST['ticketstatus'],
'newPriority' => $_POST['priority']
);
echo"$_POST[priority] - $_POST['ticketstatus']";
$updateProps = call_user_func_array(array('CBS_KayakoAPI','updateTicketProperties'), $paramsProps);
'password' => $pass,
'email' => 'zcarter@siue.edu',
'ticketId' => $ticketID,
'newStatus' => $_POST['ticketstatus'],
'newPriority' => $_POST['priority']
);
echo"$_POST[priority] - $_POST['ticketstatus']";
$updateProps = call_user_func_array(array('CBS_KayakoAPI','updateTicketProperties'), $paramsProps);
All values are being successfully passed such as the username, pass, ticket id, ticketstatus, and priority. I have even replaced those variables with hard-coded values like 1, 2, 3 etc.
But for some reason, this will only update the ticket status, not the priority and it throws a warning out on me.
"Warning: Invalid argument supplied for foreach() in /home/nobull/public_html/support/modules/tickets/functions_ticketcore.php on line 825"
Any idea why?
Thanks for your help!
Sign In »
Register Now!
Help

Back to top








