Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: Edit Entry Dropped Attachments #5873

Merged

Conversation

JediKev
Copy link
Contributor

@JediKev JediKev commented Apr 26, 2021

This addresses an issue where editing your own Thread Entry and clicking Save two separate times drops the attachment(s). This is due to the order of operations in the backend where if editing your own Thread Entry we delete the previous entry and set $old to the original Thread Entry (parent of the previous entry). This causes the attachment lookup to search for the wrong object_id which obviously finds no attachments. This moves the attachment lookup before we delete the previous entry so we can search with the appropriate ID.

This addresses an issue where editing your own Thread Entry and clicking
Save two separate times drops the attachment(s). This is due to the order of
operations in the backend where if editing your own Thread Entry we delete
the previous entry and set `$old` to the original Thread Entry (parent of
the previous entry). This causes the attachment lookup to search for the
wrong `object_id` which obviously finds no attachments. This moves the
attachment lookup before we delete the previous entry so we can search with
the appropriate ID.
@protich protich merged commit c597d06 into osTicket:1.14.x May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants