Projekt

Allgemein

Profil

Aktionen

GX-Bug #68079

geschlossen

Wenn die Artikelkurzbeschreibung in der Datenbank "NULL" ist, dann kann der Warenkorb nicht mehr aufgerufen werden / If the item short description in the database is "NULL", then the shopping cart can no longer be accessed

Von Till Tepelmann vor mehr als 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Sofort
Zugewiesen an:
Moritz Bunjes
Kategorie:
Checkout
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.1.0, 4.3.2.0
Release Notes Langtext:

Artikel mit einem "null"-Wert für die Kurzbeschreibung führen nicht mehr zu einer Fehlermeldung beim Aufruf des Warenkorbs


Beschreibung

Wenn die Artikelkurzbeschreibung in der Datenbank "NULL" ist, dann kann der Warenkorb nicht mehr aufgerufen werden

Kann wie folgt reproduziert werden:

1, Artikel anlegen

  1. unter "Toolbox->SQL" folgendes eingeben: "UPDATE products_description" SET products_short_description = NULL;
  2. Artikel aufrufen und in den Warenkorb legen

Erwartetes Ergebnis:
Der Warenkorb sollte ohne Fehler aufgerufen werden können und es sollte kein Fehler angezeigt werden

Tatsächliches Ergebnis:
Der Warenkorb ist nachdem man den Artikel in den Korb gelegt hat nicht mehr aufrufbar, es erscheint eine Fehlermeldung


If the item short description in the database is "NULL", then the shopping cart can no longer be accessed.

Can be reproduced as follows:

1, create product

  1. under "Toolbox->SQL" enter the following: "UPDATE products_description" SET products_short_description = NULL; 3, access the product and add it to the shopping cart.

Expected result:
The shopping cart should be able to be accessed without error and no error should be displayed.

Actual result:
The shopping cart cannot be opend after you put the product in the basket, an error message appears.


ERROR: Uncaught TypeError: Argument 1 passed to Gambio\Shop\Product\Representation\ShortDescription\Repository\DTO\ShortDescriptionDto::__construct() must be of the type string, null given, called in /GambioShop/Product/Representation/ShortDescription/Repository/Readers/Reader.php on line 62 and defined in /GambioShop/Product/Representation/ShortDescription/Repository/DTO/ShortDescriptionDto.php:27


Aktionen

Auch abrufbar als: Atom PDF