Browse Source

SiteController : correctif producer context

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
955e36ebac
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frontend/controllers/SiteController.php

+ 1
- 0
frontend/controllers/SiteController.php View File

$signupForm = new SignupForm(); $signupForm = new SignupForm();
$producerManager = $this->getProducerManager(); $producerManager = $this->getProducerManager();
$producer = $producerManager->findOneProducerById($id); $producer = $producerManager->findOneProducerById($id);
$this->getLogic()->setProducerContext($producer);
$loginForm->id_producer = $id; $loginForm->id_producer = $id;
$signupForm->id_producer = $id; $signupForm->id_producer = $id;
$signupForm->option_user_producer = 'user'; $signupForm->option_user_producer = 'user';

Loading…
Cancel
Save