Skip to content
Code-Schnipsel Gruppen Projekte
Commit 043808b5 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-1.x' into '1.x'

fix: shipping debug triggers Fatel Error

See merge request !41
Übergeordnete cdab763a f7a7222d
Branches 1.x
Tags 1.4.9
1 Merge Request!41fix: shipping debug triggers Fatel Error
Pipeline #9609 mit Warnungen bestanden mit Phasen
in 52 Sekunden
......@@ -116,6 +116,10 @@ public static function generateShippingEntryDebuggingLog(
$result,
$debuggingLog
) {
if (defined('QUIQQER_AJAX')) {
return;
}
if (self::isRuleAlreadyDebugged($Entry->getId())) {
return;
}
......
......@@ -67,7 +67,7 @@ public function getBody()
$shippingList = $this->getValidShipping();
// debugging logger
if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled()) {
if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled() && !defined('QUIQQER_AJAX')) {
QUI\ERP\Shipping\Debug::clearLogStock();
$debugStack = [];
......
......@@ -724,7 +724,7 @@ public function getShippingRules(): array
}
// debug shipping entry / rules
if ($debugging) {
if ($debugging && !defined('QUIQQER_AJAX')) {
QUI\ERP\Shipping\Debug::enable();
QUI\ERP\Shipping\Debug::generateShippingEntryDebuggingLog($this, $result, $debuggingLog);
QUI\ERP\Shipping\Debug::disable();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren