Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 3372686e erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: check correct deactivated shipping flag

Übergeordneter 7de56e20
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -12,6 +12,7 @@
use QUI\ERP\Shipping\Types\Factory;
use function array_keys;
use function class_exists;
use function count;
use function key;
use function max;
......@@ -99,7 +100,7 @@ public function getShippingProviders()
$result = [];
foreach ($providers as $provider) {
if (!\class_exists($provider)) {
if (!class_exists($provider)) {
continue;
}
......@@ -128,7 +129,7 @@ public function shippingDisabled()
try {
$Config = QUI::getPackage('quiqqer/shipping')->getConfig();
$this->shippingDisabled = !!$Config->getValue('shipping', 'disabled');
$this->shippingDisabled = !!$Config->getValue('shipping', 'deactivated');
} catch (QUI\Exception $Exception) {
$this->shippingDisabled = false;
}
......@@ -171,7 +172,7 @@ public function getShippingTypes()
$types = $Provider->getShippingTypes();
foreach ($types as $type) {
if (!\class_exists($type)) {
if (!class_exists($type)) {
continue;
}
......
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