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

Merge branch 'next-2.x' into 'main'

fix: shipping debug triggers Fatel Error

See merge request !40
Übergeordnete e611d5bb 8e600d05
No related branches found
Tags 2.0.7
3 Merge Requests!43Update 'next-3.x' with latest changes from 'main',!40fix: shipping debug triggers Fatel Error,!32Add QUIQQER Tooling
Pipeline #9607 mit Warnungen bestanden mit Phasen
in 1 Minute und 15 Sekunden
......@@ -12,6 +12,7 @@
use QUI\ERP\Shipping\Types\ShippingEntry;
use function class_exists;
use function defined;
/**
* Class Debug
......@@ -122,6 +123,10 @@ public static function generateShippingEntryDebuggingLog(
$result,
$debuggingLog
): void {
if (defined('QUIQQER_AJAX')) {
return;
}
if (self::isRuleAlreadyDebugged($Entry->getId())) {
return;
}
......
......@@ -11,6 +11,7 @@
use function array_merge;
use function count;
use function defined;
use function dirname;
use function implode;
......@@ -70,7 +71,7 @@ public function getBody(): string
$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 = [];
......
......@@ -721,7 +721,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