Projekt

Allgemein

Profil

Aktionen

GX-Bug #69340

geschlossen

Wrong default value for column 'google_export_condition_id' | Falscher Standardwert für die Spalte 'google_export_condition_id'

Von Marvin Muxfeld vor mehr als 2 Jahren hinzugefügt. Vor etwa 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Ahmed Hamouda
Kategorie:
Core
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.5.1.0, 4.5.1.0 RC1
Release Notes Langtext:

Der Standardwert für "Zustand" beim Erstellen von Produkten ist nun wieder "neu"


Beschreibung

This new column google_export_condition_id in the table products_item_codes has currently (as of 4.5.1.0 RC1) the default id 0, which does not exists. This can lead to products having not google export condition preselected.

The old column google_export_condition had a default value of "neu". Accordingly the google_export_condition_id column should have 1 as default value.

With the usage of Gambio Admin it is not possible to leave this required field empty but it is possible using the V2 REST API. The REST-API user is responsible for not sending 0 as a value. Nevertheless the old column googleExportCondition with the possible values neu, gebraucht and erneuert should still be supported. If the Body contains googleExportCondition and googleExportConditionId, googleExportCondition will be ignored.

Example JSON-Body for POST api.php/v2/products request is attached.


Dateien

create_two_products.json (5,79 KB) create_two_products.json create product with old googleExportCondition and product with new googleExportConditionId value Moritz Bunjes, 17.11.2021 12:20

Aktionen

Auch abrufbar als: Atom PDF