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

oops: Fix crash updating canned response with attachments

parent 133cbb56
No related branches found
No related tags found
No related merge requests found
......@@ -546,9 +546,9 @@ class AttachmentFile extends VerySimpleModel {
}
static function lookup($id) {
return is_numeric($id)
? parent::lookup($id)
: static::lookupByHash($id);
return is_string($id)
? static::lookupByHash($id)
: parent::lookup($id);
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment