瀏覽代碼

Product : correctif initialisation taxRate

feature/souke
Guillaume Bourgeois 11 月之前
父節點
當前提交
45c020be6b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      common/helpers/GlobalParam.php

+ 4
- 0
common/helpers/GlobalParam.php 查看文件

@@ -61,6 +61,10 @@ class GlobalParam

public static function getCurrentProducer()
{
if(\Yii::$app->controller->module->id == 'app-console') {
return \Yii::$app->logic->getProducerContext();
}

$producerModule = ProducerModule::getInstance();
if(!\Yii::$app->parameterBag->has('producer') || !\Yii::$app->parameterBag->get('producer')) {
\Yii::$app->parameterBag->set('producer', $producerModule->findOneProducerById(self::getCurrentProducerId()));

Loading…
取消
儲存