Skip to content

Commit

Permalink
Fix "Input value contains a non-scalar value"
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed Dec 19, 2023
1 parent 7438da0 commit 2f33f4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Eccube/Controller/Admin/Product/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ public function edit(Request $request, RouterInterface $router, CacheUtil $cache

$this->entityManager->flush();

if (array_key_exists('product_image', $request->request->get('admin_product'))) {
$product_image = $request->request->get('admin_product')['product_image'];
if ($product_image = $request->request->all()['admin_product']['product_image'] ?? []) {
foreach ($product_image as $sortNo => $filename) {
$ProductImage = $this->productImageRepository
->findOneBy([
Expand Down

0 comments on commit 2f33f4b

Please sign in to comment.