summaryrefslogtreecommitdiff
path: root/app/Model/Category.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
commit0bc51620c731e7cfd10db5e064fc04693205b21c (patch)
treed73ea3a352561374d8f81eedb6a8dc1dbfdda544 /app/Model/Category.php
parent505f62e6cafec1b9ccfc52df4c5441d2568a0ba4 (diff)
Add unit tests for last automatic actions
Diffstat (limited to 'app/Model/Category.php')
-rw-r--r--app/Model/Category.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/Model/Category.php b/app/Model/Category.php
index 58cee738..883fc282 100644
--- a/app/Model/Category.php
+++ b/app/Model/Category.php
@@ -193,11 +193,12 @@ class Category extends Base
*/
public function duplicate($src_project_id, $dst_project_id)
{
- $categories = $this->db->table(self::TABLE)
- ->columns('name')
- ->eq('project_id', $src_project_id)
- ->asc('name')
- ->findAll();
+ $categories = $this->db
+ ->table(self::TABLE)
+ ->columns('name')
+ ->eq('project_id', $src_project_id)
+ ->asc('name')
+ ->findAll();
foreach ($categories as $category) {
$category['project_id'] = $dst_project_id;