Skip to content

Commit

Permalink
Merge pull request joomla#8918 from infograf768/save2copy_assoc
Browse files Browse the repository at this point in the history
[bug] Multilanguage: Save as Copy should not transfer the associations to the new item
  • Loading branch information
wilsonge committed Jan 20, 2016
2 parents 2ffbb4f + 242a069 commit 8fedeac
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'] = array();
}
$task = 'apply';
}

Expand Down

0 comments on commit 8fedeac

Please sign in to comment.