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
Branches
Tags
No related merge requests found
...@@ -546,9 +546,9 @@ class AttachmentFile extends VerySimpleModel { ...@@ -546,9 +546,9 @@ class AttachmentFile extends VerySimpleModel {
} }
static function lookup($id) { static function lookup($id) {
return is_numeric($id) return is_string($id)
? parent::lookup($id) ? static::lookupByHash($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