瀏覽代碼

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);

Loading…
取消
儲存