summaryrefslogtreecommitdiff
path: root/app/Model/SwimlaneModel.php
diff options
context:
space:
mode:
authorRafael de Camargo <rafacamargo123@gmail.com>2019-07-17 18:32:16 -0300
committerFrédéric Guillot <fred@kanboard.net>2019-07-17 14:32:16 -0700
commitc250f3b1b8b42652cd2f3b3f19ce36624e384ff0 (patch)
tree3018a2b8a5a7ad2fcfbc79c8f755a1e0875b67f3 /app/Model/SwimlaneModel.php
parentd3be738d4f698ccc387e256dba314edcfa043e05 (diff)
Add option to clone filters on project duplication
* Fixed missing metadata option from project "create from" * Added option to clone project custom filters * Added append option to custom field tests * Added a test that uses the "append" option * Fixed disabled swimlane duplication error with Postgresql
Diffstat (limited to 'app/Model/SwimlaneModel.php')
-rw-r--r--app/Model/SwimlaneModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/SwimlaneModel.php b/app/Model/SwimlaneModel.php
index 2b3be912..0d204ae2 100644
--- a/app/Model/SwimlaneModel.php
+++ b/app/Model/SwimlaneModel.php
@@ -443,7 +443,7 @@ class SwimlaneModel extends Base
'name' => $swimlane['name'],
'description' => $swimlane['description'],
'position' => $swimlane['position'],
- 'is_active' => $swimlane['is_active'],
+ 'is_active' => $swimlane['is_active'] ? self::ACTIVE : self::INACTIVE, // Avoid SQL error with Postgres
'project_id' => $projectDstId,
);