heimrichhannot / contao-isotope-stock-bundle

A stock extension for isotope compatible with our legacy isotope extensions.
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Inventory increase after order cancellation run into an error #2

Open sgei opened 3 weeks ago

sgei commented 3 weeks ago

Contao: 4.13.47 Isotope: 2.9.1 PHP: 8.3.11

Hallo,

ich habe die Erweiterung in der aktuellen Version installiert. Das Runterzählen des Lagerbestandes funktioniert super. Lediglich bei einer Stornierung (Bestellstatus wurde entsprechend angelegt und die Checkbox bei "Bestand-erhöhender Bestellstatus" wurde gesetzt.) kommt ein Fehler.

Internal Server Error The model instance has been detached and cannot be saved

Wenn ich eine Bestellung auf den Storno-Bestellstatus setzte bekomme ich einen Internal Server Error:

[2024-09-17T06:09:28.141735+00:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_controller":"Contao\CoreBundle\Controller\BackendController::mainAction"},"request_uri":"https://.../contao?act=edit&do=iso_orders&id=2&ref=PhVnIsKR&rt=e68274b29.CKUdjWR3v5U59HFPWaUexYlJ-4U_ZGbxtCJY0P1KMQw.SspFxyNA7fZWqwcuCtdvs7shlNxOHjy_gX0NnMgfQ19E_WnHCBbl-26jPA","method":"POST"} []

[2024-09-17T06:09:28.222175+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "The model instance has been detached and cannot be saved" at /var/www/vhosts/.../vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php line 426 {"exception":"[object] (RuntimeException(code: 0): The model instance has been detached and cannot be saved at /var/www/vhosts/.../vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:426)"} []

sgei commented 2 days ago

Hi, is there any chance to get a fix for this error? Steffen