Skip to content
Snippets Groups Projects
Commit 86728a85 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #595 from greezybacon/issue/bk-char


file: Fix saving backend char

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents df83dc3a e84030f4
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,7 @@ class AttachmentFile {
return false;
}
function save(&$file, $ft=false) {
function save(&$file, $ft='T') {
if (isset($file['data'])) {
// Allow a callback function to delay or avoid reading or
......
......@@ -108,7 +108,7 @@ class AttachmentMigrater extends MigrationTask {
}
# TODO: Add extension-based mime-type lookup
if (!($fileId = AttachmentFile::save($info))) {
if (!($fileId = AttachmentFile::save($info, false))) {
return $this->skip($info['attachId'],
sprintf('%s: Unable to migrate attachment', $info['path']));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment