diff options
author | Matteo Mazza <matteom.mazza@gmail.com> | 2018-11-01 02:26:01 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2018-10-31 18:26:01 -0700 |
commit | 961486ae893b1369da715a3be6767ff382d4c1e8 (patch) | |
tree | 6ba1d09b593c4574d513b5b5a92553b3329c2c52 /app/Model/ColumnMoveRestrictionModel.php | |
parent | dea1f85d36a7381bb9b0535aabffdb48216b10fe (diff) |
Fix custom roles duplication
The source_column_id and destination_column_id are searched into the correct project: the newly created one.
Diffstat (limited to 'app/Model/ColumnMoveRestrictionModel.php')
-rw-r--r-- | app/Model/ColumnMoveRestrictionModel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ColumnMoveRestrictionModel.php b/app/Model/ColumnMoveRestrictionModel.php index 0c337c06..69547539 100644 --- a/app/Model/ColumnMoveRestrictionModel.php +++ b/app/Model/ColumnMoveRestrictionModel.php @@ -159,8 +159,8 @@ class ColumnMoveRestrictionModel extends Base $result = $this->db->table(self::TABLE)->persist(array( 'project_id' => $project_dst_id, 'role_id' => $role_dst_id, - 'src_column_id' => $row['src_column_id'], - 'dst_column_id' => $row['dst_column_id'], + 'src_column_id' => $src_column_id, + 'dst_column_id' => $dst_column_id, 'only_assigned' => (int) $row['only_assigned'], )); |