mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#162 update gives an error
This commit is contained in:
parent
01fdfead45
commit
7dd32d2f3b
@ -111,7 +111,7 @@ class CategoryController extends AdminController
|
|||||||
if (empty($isMultiCat)) {
|
if (empty($isMultiCat)) {
|
||||||
$this->categoryRepository->create(array_merge($translatableEntries, [
|
$this->categoryRepository->create(array_merge($translatableEntries, [
|
||||||
'slug' => $all['slug'],
|
'slug' => $all['slug'],
|
||||||
'parent_category' => $all['parent_category'],
|
'parent_category' => $all['parent_category'] === "" ? null : $all['parent_category'],
|
||||||
'icon' => $all['icon'],
|
'icon' => $all['icon'],
|
||||||
'seo_keyword' => $all['seo_keyword'],
|
'seo_keyword' => $all['seo_keyword'],
|
||||||
'seo_description' => $all['seo_description'],
|
'seo_description' => $all['seo_description'],
|
||||||
@ -123,7 +123,7 @@ class CategoryController extends AdminController
|
|||||||
}
|
}
|
||||||
$this->categoryRepository->create(array_merge($translatableEntries, [
|
$this->categoryRepository->create(array_merge($translatableEntries, [
|
||||||
'slug' => $this->str->slug(reset($translatableEntries)['name'], '_'),
|
'slug' => $this->str->slug(reset($translatableEntries)['name'], '_'),
|
||||||
'parent_category' => $all['parent_category'],
|
'parent_category' => $all['parent_category'] === "" ? null : $all['parent_category'],
|
||||||
'icon' => $all['icon'],
|
'icon' => $all['icon'],
|
||||||
'seo_keyword' => $all['seo_keyword'],
|
'seo_keyword' => $all['seo_keyword'],
|
||||||
'seo_description' => $all['seo_description'],
|
'seo_description' => $all['seo_description'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user