From 961486ae893b1369da715a3be6767ff382d4c1e8 Mon Sep 17 00:00:00 2001 From: Matteo Mazza Date: Thu, 1 Nov 2018 02:26:01 +0100 Subject: Fix custom roles duplication The source_column_id and destination_column_id are searched into the correct project: the newly created one. --- app/Model/ColumnMoveRestrictionModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Model/ColumnMoveRestrictionModel.php') 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'], )); -- cgit v1.2.3