Skip to content
Snippets Groups Projects
Commit a088e511 authored by Jared Hancock's avatar Jared Hancock
Browse files

file: Force dump of file contents

Instead of allowing the backend to send a redirect URL, which doesn't make
sense on the command line
parent f5578287
No related branches found
No related tags found
No related merge requests found
...@@ -76,8 +76,9 @@ class FileManager extends Module { ...@@ -76,8 +76,9 @@ class FileManager extends Module {
if ($files->count() != 1) if ($files->count() != 1)
$this->fail('Criteria must select exactly 1 file'); $this->fail('Criteria must select exactly 1 file');
$f = AttachmentFile::lookup($files[0]->id); if (($f = AttachmentFile::lookup($files[0]->id))
$f->sendData(); && ($bk = $f->open()))
$bk->passthru();
break; break;
case 'migrate': case 'migrate':
...@@ -189,12 +190,6 @@ class TicketAttachmentModel extends VerySimpleModel { ...@@ -189,12 +190,6 @@ class TicketAttachmentModel extends VerySimpleModel {
), ),
); );
} }
class TicketModel extends VerySimpleModel {
static $meta = array(
'table' => TICKET_TABLE,
'pk' => 'ticket_id',
);
}
Module::register('file', 'FileManager'); Module::register('file', 'FileManager');
?> ?>
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