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

file: Fix saving backend char #595

Merged
merged 1 commit into from Feb 26, 2014

Conversation

greezybacon
Copy link
Contributor

Because the file type normally defaults to the system default (for fetched emails at least), the backend char was not saved, because the file type char was left at the system default. Therefore, if a file is saved to a backend other than the default (in the database), the data will likely be saved to the backend, but the file metadata will reflect the incorrect backend.

The only reason the file type char was not defaulted in the AttachmentFile::save() method was for the migration process from osTicet 1.6 to osTicket 1.7. This is mitigated by passing false specifically from the migration task.

Since otherwise the file type char is now set, the backend char is now saved with the file metadata.

Because the file type normally defaults to the system default (for fetched
emails at least), the backend char was not saved, because the file type char
was left at the system default. Therefore, if a file is saved to a backend
other than the default (in the database), the data will likely be saved to
the backend, but the file metadata will reflect the incorrect backend.

The only reason the file type char was not defaulted in the
AttachmentFile::save() method was for the migration process from osTicet 1.6
to osTicket 1.7. This is mitigated by passing `false` specifically from the
migration task.

Since otherwise the file type char is now set, the backend char is now saved
with the file metadata.
protich added a commit that referenced this pull request Feb 26, 2014
file: Fix saving backend char

Reviewed-By: Peter Rotich <peter@osticket.com>
@protich protich merged commit 86728a8 into osTicket:develop-next Feb 26, 2014
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