浏览代码

Correctif : Binding entities to query parameters only allowed for entities that have an identifier.

master
Guillaume Bourgeois 2 年前
父节点
当前提交
742875ef44
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      Controller/Product/ProductFamilyAdminController.php

+ 5
- 3
Controller/Product/ProductFamilyAdminController.php 查看文件

@@ -57,9 +57,11 @@ abstract class ProductFamilyAdminController extends AbstractAdminController
$productFamilies[] = $productFamilyDto->getInstance();
}

$this->getProductFamilyContainer()->getStore()
->setSection($this->getSectionCurrentDefault())
->getWithReductions($productFamilies);
if($responseParameters->get('pageName') != 'new') {
$this->getProductFamilyContainer()->getStore()
->setSection($this->getSectionCurrentDefault())
->getWithReductions($productFamilies);
}

// affichage du filtre sur section
$responseParameters->set('display_switch_section', true);

正在加载...
取消
保存