GX-Bug #69340
geschlossenWrong default value for column 'google_export_condition_id' | Falscher Standardwert für die Spalte 'google_export_condition_id'
0%
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