Fix custom roles duplication

The source_column_id and destination_column_id are searched into the correct project: the newly created one.
This commit is contained in:
Matteo Mazza 2018-11-01 02:26:01 +01:00 committed by fguillot
parent dea1f85d36
commit 961486ae89
1 changed files with 2 additions and 2 deletions

View File

@ -159,8 +159,8 @@ class ColumnMoveRestrictionModel extends Base
$result = $this->db->table(self::TABLE)->persist(array( $result = $this->db->table(self::TABLE)->persist(array(
'project_id' => $project_dst_id, 'project_id' => $project_dst_id,
'role_id' => $role_dst_id, 'role_id' => $role_dst_id,
'src_column_id' => $row['src_column_id'], 'src_column_id' => $src_column_id,
'dst_column_id' => $row['dst_column_id'], 'dst_column_id' => $dst_column_id,
'only_assigned' => (int) $row['only_assigned'], 'only_assigned' => (int) $row['only_assigned'],
)); ));