Trescpress Posted March 4, 2021 Share Posted March 4, 2021 I have an separate web app that lets users create tickets on WHMCS using the OpenTicket API (external). This works, but the owner is set to the client name for whom the ticket is created. $postfields = [ 'action' => 'OpenTicket', 'clientid' => $client_id, 'admin' => true, 'name' => 'Admin User', 'deptid' => '1', 'priority' => 'Medium', 'subject' => 'subject', 'message' => 'Example Message', 'responsetype' => 'json', ]; I want for the ticket to be created as an admin User. Am I missing something? PS: if i send same request using the Local API, it works perfectly. 0 Quote Link to comment Share on other sites More sharing options...
Trescpress Posted March 8, 2021 Author Share Posted March 8, 2021 My code was tested in version 8.1.0 of WHMCS. So I tested the same code in version 7.10 of WHMCS and it works as expected. Looks like 8.1.0 has a bug. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 9, 2021 Share Posted March 9, 2021 On 08/03/2021 at 07:27, Trescpress said: Looks like 8.1.0 has a bug. I think it's a known bug that was fixed in v8.1.1 Quote CORE-16125 - Correct inspection of 'admin' parameter for OpenTicket API upgrading to v8.1.1 (or preferably v8.1.3) should be the way to go to fix this. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.