Skip to content

Commit

Permalink
multilanguage: Save as Copy should not transfer the associations to the
Browse files Browse the repository at this point in the history
new item
  • Loading branch information
infograf768 committed Jan 17, 2016
1 parent 0f89623 commit 3f21121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/legacy/controller/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,12 @@ public function save($key = null, $urlVar = null)

// Reset the ID and then treat the request as for Apply.
$data[$key] = 0;

// Reset multilingual associations if necessary
if (isset($data['associations']) && array_sum($data['associations']) != 0)
{
$data['associations'] = '';
}
$task = 'apply';
}

Expand Down

0 comments on commit 3f21121

Please sign in to comment.