summaryrefslogtreecommitdiff
path: root/app/Controller/User.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-11-14 16:12:44 -0500
committerFrederic Guillot <fred@kanboard.net>2015-11-14 16:12:44 -0500
commit2fc402f6733573627ad25394d109b9f848ef04f6 (patch)
treeefc0407ef780742bee91886287bacb0c9b5903c1 /app/Controller/User.php
parentd0925d99e78843ef3c633aac052880fc271ac299 (diff)
Fix PHP error when adding a new user with email notification enabled
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r--app/Controller/User.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/User.php b/app/Controller/User.php
index b5f4edeb..8526fb57 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -3,6 +3,7 @@
namespace Kanboard\Controller;
use Kanboard\Model\NotificationType;
+use Kanboard\Notification\Mail as MailNotification;
/**
* User controller
@@ -95,7 +96,7 @@ class User extends Base
$this->projectPermission->addMember($project_id, $user_id);
if (! empty($values['notifications_enabled'])) {
- $this->userNotificationType->saveSelectedTypes($user_id, array(NotificationType::TYPE_EMAIL));
+ $this->userNotificationType->saveSelectedTypes($user_id, array(MailNotification::TYPE));
}
$this->session->flash(t('User created successfully.'));