uvdesk / api-bundle

API Integration for UVdesk Community Helpdesk System.
MIT License
17 stars 15 forks source link

If in api parameters leave space in last when create ticket then here showing an error #63

Open komal-sh-27 opened 1 year ago

komal-sh-27 commented 1 year ago

Description
If in api parameters leave space in last when create ticket then here showing an error

How to reproduce
Create a ticket using api side and added a api parameters with leave space in last in the below parameters, then after send request shows an error in all parameters like this: "Warning: Undefined array key "actAsType""

Name
From
Email
actAsType
Subject
Message
Attachments[0] 

Note: Only on actAsEmail parameter if leave space in last then working. Also, if we leave space in starting then all works fine.

Possible Solution
If we have leave space in the last then should not be shown an error like this.