Selaa lähdekoodia

correct azonosito required false

master
Dukai Károly 3 vuotta sitten
vanhempi
commit
12c99932d2
4 muutettua tiedostoa jossa 23 lisäystä ja 3 poistoa
  1. +16
    -0
      README.txt
  2. +5
    -3
      modules/custom/arlista/src/Form/Category/CategoryEdit.php
  3. +1
    -0
      modules/custom/arlista/src/Form/Component/ComponentEdit.php
  4. +1
    -0
      modules/custom/arlista/src/Form/Manufacturer/ManufacturerEdit.php

+ 16
- 0
README.txt Näytä tiedosto

@@ -1,3 +1,19 @@
-- Változás napló 2023-02-01

- fájlok feltöltése:
- a feltöltött fájlok listája ha meghaladja a 3 fájlt, akkor csak kettő kerül listázásra,
- az elrejtett fájlokat a piros nyillal lehet megjeleníteni,
- a látható, de elrejthető fájlokat a zöld nyillal lehet elrejteni
- cikkszámozás
- cikkszámozáskor nincs odlal újratöltés
- garanciák:
- a meglévő garancia lista mellett (ami szürhető):
- a komponens garanciája gyártónként módosítható
- a termékcsoport garanciája menthető
- garancia frissítés nélkül,
- minden gyártóra vonatkozólag,
- tetszőlegesen kiválasztott gyártóra,

-- Változás napló 2023-01-20

- az axico id 0 helyett 1-től kezdődik

+ 5
- 3
modules/custom/arlista/src/Form/Category/CategoryEdit.php Näytä tiedosto

@@ -73,6 +73,7 @@ class CategoryEdit extends ArlistaAbstractForm {
];

$form = $this->getSifField($form, $category, -800);
$form['sif']['#required'] = false;

$form['items_wrapper']['buttons'] = array(
'#type' => 'container',
@@ -144,13 +145,14 @@ class CategoryEdit extends ArlistaAbstractForm {
}
}

\Drupal::messenger()->addStatus($values['parent_manufacturer_id']);

if($values['parent_manufacturer_id'] == 0){
$updated = $this->getAxicoIdWarrantyFactory()->updateForAllManufacturers($category->getAxicoIdName(),$values['axico_id_warranty_length']);
}

\Drupal::messenger()->addStatus($this->t('Sikeres mentés! ' . $updated . ' (Cikkszámgarancia frissítve)'));
\Drupal::messenger()->addStatus('Sikeres mentés!');
if($updated){
\Drupal::messenger()->addStatus($updated . ' cikkszámgarancia frissítve *');
}

$form_state->setRedirect('arlista.category.edit', ['cid' => $category->getId()]);
}

+ 1
- 0
modules/custom/arlista/src/Form/Component/ComponentEdit.php Näytä tiedosto

@@ -91,6 +91,7 @@ class ComponentEdit extends ArlistaAbstractForm
];

$form = $this->getSifField($form, $component, -850);
$form['sif']['#required'] = false;

$manufacturers = $this->getManufacturerFactory()->findAll();
$selectSettings = [

+ 1
- 0
modules/custom/arlista/src/Form/Manufacturer/ManufacturerEdit.php Näytä tiedosto

@@ -49,6 +49,7 @@ class ManufacturerEdit extends ArlistaAbstractForm {
];

$form = $this->getSifField($form, $manufacturer, 40);
$form['sif']['#required'] = false;

$componentBasedOptions = [
0 => 'Termékcsoport alapú besorolás',

Loading…
Peruuta
Tallenna