summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-14 14:29:52 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-14 14:29:52 -0400
commit100330c989873d535785fdb1586d3602b1def202 (patch)
treeb0422bdb2a8b8cc85ab33fb98d8e542fb5ad35ec
parentc093536c2c8b9b15be629b88206f406cc01006d0 (diff)
Fix wrong event name in switch/case
-rw-r--r--app/Model/Notification.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index d18e7642..ec349681 100644
--- a/app/Model/Notification.php
+++ b/app/Model/Notification.php
@@ -283,7 +283,7 @@ class Notification extends Base
public function getMailSubject($event_name, array $event_data)
{
switch ($event_name) {
- case Task::EVENT_CREATE:
+ case File::EVENT_CREATE:
$subject = $this->getStandardMailSubject(e('New attachment'), $event_data);
break;
case Comment::EVENT_CREATE: