Browse Source

product add form fix, undefined index revokeAxicoId

master
Dukai Károly 2 years ago
parent
commit
6dd1624222
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      modules/custom/arlista/src/Form/Product/ProductAdd.php

+ 11
- 1
modules/custom/arlista/src/Form/Product/ProductAdd.php View File

@@ -350,16 +350,26 @@ class ProductAdd extends ArlistaAbstractForm {
$result = [
'products' => [$product],
'manufacturer' => $this->getManufacturerFactory()->find($this->mid),
'axicoId' => [],
'axicoIdContinued' => 0,
'axicoIdGenerated' => 0,
'axicoIdCopied' => 0,
'axicoIdMissing' => 0,
'axicoIdRevoked' => 0,
'totalCompared' => 0,
'unchanged' => 0,
'changed' => 0,
'newProduct' => 0,
'status' => false,
'productIsManuallyAdded' => true
'totalNumbered' => 0,
'revokeAxicoId' => null,
'productIsManuallyAdded' => true,
'revokedProducts' => [],
'totalActualised' => 0,
'updatedProduct' => 0
];


$result = $this->getProductFactory()->compareProducts($result);
$result = $this->getProductFactory()->createOrFindAxicoIdForEachProduct($result);


Loading…
Cancel
Save