Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/4.0-dev' into j4/frameworkImage
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Aug 3, 2019
2 parents 9c5f894 + 511547a commit de1495a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/sampledata/testing/testing.php
Expand Up @@ -1021,7 +1021,8 @@ public function onAjaxSampledataApplyStep4()
return $response;
}

$this->app->setUserState('sampledata.testing.articles', $ids);
$articleNamespace = (array) $this->app->getUserState('sampledata.testing.articles');
$this->app->setUserState('sampledata.testing.articles', array_merge($ids, $articleNamespace));

$response = array();
$response['success'] = true;
Expand Down Expand Up @@ -4589,7 +4590,7 @@ private function addCategories(array $categories, $extension, $level)
}

// Get ID from category we just added
$catIds[] = $this->categoryModel->getItem()->id;
$catIds[] = $this->categoryModel->getState($this->categoryModel->getName() . '.id');
}

return $catIds;
Expand Down Expand Up @@ -4664,7 +4665,7 @@ private function addArticles(array $articles)
}

// Get ID from category we just added
$ids[] = $model->getItem()->id;
$ids[] = $model->getState($model->getName() . '.id');
}

return $ids;
Expand Down

0 comments on commit de1495a

Please sign in to comment.