Added missing TicketID in ArticleList. #346
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
There is a error when creating a "Incoming Phone Call"-Article if there is no customeruser set in the ticket.
The sender of the article is 'Znuny System' instead of the customer.
When there is no customeruser set Znuny tries to get the sender from the returned array of the ArticleList function.
This always fails because no TicketID parameter is passed to the function.
How to reproduce the error:
Create a ticket by just adding a email address instead of a customeruser as the customer of the ticket.
After the ticket has been created, add an article to it by using the AgentTicketPhoneInbound action.
In addition there will be the following error in the log:
1 - 🐞 bug 🐞
Additional information
Before:
After:
Checklist