Sfoglia il codice sorgente

Merge branch 'develop'

master
Guillaume Bourgeois 1 anno fa
parent
commit
3146bae35c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      common/helpers/GlobalParam.php

+ 4
- 0
common/helpers/GlobalParam.php Vedi File

@@ -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…
Annulla
Salva