Skip to content

Commit

Permalink
fixing copy block/recursion problem this fixes #880 (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpetrasch authored and nadar committed Jun 14, 2016
1 parent 49b1f04 commit 5dbf8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ LUYA CHANGELOG
-------------------------

- `#877` **[BC BREAK]** Changing the `ngRestApiEndpoint` method to static. Use `public static function ngRestApiEndpoint()`.
- `#880` Fixed copy/paste layout block recursion problem.
- `#831` Close the propertie mask after saving/updating propertie values.
- `#578` Added new sort relation plugin as requested to make relations with sortable data from model or array.
- `#876` Improved textarea styling in zaa-table.
Expand Down
2 changes: 1 addition & 1 deletion modules/cmsadmin/src/apis/NavItemBlockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function actionCopyBlockFromStack()
{
$model = NavItemPageBlockItem::findOne(Yii::$app->request->post('copyBlockId', 0));

if ($model) {
if (($model) && ((Yii::$app->request->post('copyBlockId', 0) !== Yii::$app->request->post('prevId', false)))) {
$newModel = new NavItemPageBlockItem();
$newModel->attributes = $model->toArray();
$newModel->is_dirty = 0;
Expand Down

0 comments on commit 5dbf8a7

Please sign in to comment.