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
No related branches found
Tags 2.0.8
1 Merge Request!41fix: shipping debug triggers Fatel Error
Pipeline #9608 mit Warnungen bestanden mit Phase
in 11 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