소스 검색

component edit fix

master
Dukai Károly 3 년 전
부모
커밋
053adb280b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      modules/custom/arlista/src/Form/Component/ComponentEdit.php

+ 1
- 1
modules/custom/arlista/src/Form/Component/ComponentEdit.php 파일 보기

@@ -135,7 +135,7 @@ class ComponentEdit extends ArlistaAbstractForm
$component->setAxicoIdName($values['axico_id_name']);
$component->setSif($values['sif']);
/* @var $manufacturer Manufacturer */
$manufacturer = $this->getManufacturerFactory()->find($values['parent_manufacturer_id'][0]);
$manufacturer = $this->getManufacturerFactory()->find($values['parent_manufacturer_id']);
if ($component->isNew()) {
$component->setParentManufacturerId($manufacturer->getId());
$component = $this->getComponentFactory()->save($component);

Loading…
취소
저장