Переглянути джерело

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

Завантаження…
Відмінити
Зберегти