freescout
freescout copied to clipboard
closedByUser is not set in DB if the conversation is closed at the beginning
I purchased the API/Webhooks module.
Test case
- Support agent logs in
- Support agent clicks conversation button
- In this conversation the status is marked as closed
- Click send
Expected outcome
The closedByUser in API is set to that person.
Actual outcome
closedByUser is null.
We can't reproduce the issue. Could you please attach screenshots or video of steps 1-4 and API output.
Yes, please find below one example where the conversation is closed but there is no closedBy:
Are you using the latest version of FreeScout and modules? Can you reproduce the issue on demo.freescout.net?
Yes.
I have just reproduced it on demo website.
Perhaps the error is here:
https://github.com/freescout-helpdesk/freescout/blob/078e098b28266ee5b7f2cd775a5b4e5aad6df48e/app/Conversation.php#L1881
It is missing something like this:
https://github.com/freescout-helpdesk/freescout/blob/078e098b28266ee5b7f2cd775a5b4e5aad6df48e/app/Conversation.php#L559
How are you creating the conversation?

https://demo.freescout.net/api/conversations/16?api_key=c2ba609c687a3425402b9d881e5075db

Yes that's what I did with status closed
We'll leave it as help wanted. Maybe someone will be able to reproduce it and find the reason of the issue.
I have reproduced this on demo just now. Status is closed but closed by is null.
Did it twice in a row and got different results.
Closing this issue. If somebody is better at testing than me they can reopen it!