[Changed] remove save-logic from Getter-Method

Cette révision appartient à :
2025-03-19 08:31:56 +01:00
Parent 3250f2bf91
révision e347739bd3
2 fichiers modifiés avec 10 ajouts et 10 suppressions

Voir le fichier

@ -14,21 +14,18 @@ class ManagerHandler
*/
public function getCurrManager() :string
{
if ($this->getModuleSettingExplicitManagerSelectValue()){
return $this->getExplicitManager();
}
/** @var ManagerTypes $oManagerTypes */
$oManagerTypes = oxNew(ManagerTypes::class);
/** @var ViewConfig $oViewConfig */
$oViewConfig = oxNew(ViewConfig::class);
$aManagerList = $oManagerTypes->getManagerList();
if ($this->getModuleSettingExplicitManagerSelectValue()){
return $this->getExplicitManager();
}
foreach ($aManagerList as $shopModuleId => $publicCMPName){
if ($oViewConfig->isModuleActive($shopModuleId)){
$this->d3SaveShopConfVar($shopModuleId);
return $shopModuleId;
}
}
@ -71,8 +68,6 @@ class ManagerHandler
? $sPotentialManagerName
: "NONE";
$this->d3SaveShopConfVar($sCMPName);
return $sCMPName;
}
}