diff options
Diffstat (limited to 'app/Action/Base.php')
-rw-r--r-- | app/Action/Base.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Action/Base.php b/app/Action/Base.php index febd6cfc..1298aec2 100644 --- a/app/Action/Base.php +++ b/app/Action/Base.php @@ -265,9 +265,12 @@ abstract class Base extends \Kanboard\Core\Base * @param string $event * @param string $description */ - public function addEvent($event, $description) + public function addEvent($event, $description = '') { - $this->eventManager->register($event, $description); + if ($description !== '') { + $this->eventManager->register($event, $description); + } + $this->compatibleEvents[] = $event; return $this; } |