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

fix: shipping debug triggers Fatel Error

related: #54
Übergeordneter 054c2b21
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
1 Merge Request!41fix: shipping debug triggers Fatel Error
Pipeline-Nr. 9608 mit Warnungen bestanden
...@@ -116,6 +116,10 @@ public static function generateShippingEntryDebuggingLog( ...@@ -116,6 +116,10 @@ public static function generateShippingEntryDebuggingLog(
$result, $result,
$debuggingLog $debuggingLog
) { ) {
if (defined('QUIQQER_AJAX')) {
return;
}
if (self::isRuleAlreadyDebugged($Entry->getId())) { if (self::isRuleAlreadyDebugged($Entry->getId())) {
return; return;
} }
......
...@@ -67,7 +67,7 @@ public function getBody() ...@@ -67,7 +67,7 @@ public function getBody()
$shippingList = $this->getValidShipping(); $shippingList = $this->getValidShipping();
// debugging logger // debugging logger
if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled()) { if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled() && !defined('QUIQQER_AJAX')) {
QUI\ERP\Shipping\Debug::clearLogStock(); QUI\ERP\Shipping\Debug::clearLogStock();
$debugStack = []; $debugStack = [];
......
...@@ -724,7 +724,7 @@ public function getShippingRules(): array ...@@ -724,7 +724,7 @@ public function getShippingRules(): array
} }
// debug shipping entry / rules // debug shipping entry / rules
if ($debugging) { if ($debugging && !defined('QUIQQER_AJAX')) {
QUI\ERP\Shipping\Debug::enable(); QUI\ERP\Shipping\Debug::enable();
QUI\ERP\Shipping\Debug::generateShippingEntryDebuggingLog($this, $result, $debuggingLog); QUI\ERP\Shipping\Debug::generateShippingEntryDebuggingLog($this, $result, $debuggingLog);
QUI\ERP\Shipping\Debug::disable(); QUI\ERP\Shipping\Debug::disable();
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren