summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-10 14:00:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-10 14:00:34 -0500
commitff1de5c06d536be7fe2875820d4d0b2849512cb5 (patch)
tree38dfad7c5f3c9aa83edf47b2b22af7b2b50dbd7b /app
parent26e3996014936268f4acbfa214fa881af9320ddd (diff)
Fix bug: Automatic action listeners were using the same instance
Diffstat (limited to 'app')
-rw-r--r--app/Core/Action/ActionManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Core/Action/ActionManager.php b/app/Core/Action/ActionManager.php
index 921a8b98..f1ea8abe 100644
--- a/app/Core/Action/ActionManager.php
+++ b/app/Core/Action/ActionManager.php
@@ -127,7 +127,8 @@ class ActionManager extends Base
}
foreach ($actions as $action) {
- $listener = $this->getAction($action['action_name'])->setProjectId($action['project_id']);
+ $listener = clone $this->getAction($action['action_name']);
+ $listener->setProjectId($action['project_id']);
foreach ($action['params'] as $param_name => $param_value) {
$listener->setParam($param_name, $param_value);