Browse Source

[Administration] Correcit switchProducer

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
9abda816a7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/SiteController.php

+ 1
- 1
backend/controllers/SiteController.php View File

$producer = $this->getProducerContainer()->getRepository()->findOneProducerById($id); $producer = $this->getProducerContainer()->getRepository()->findOneProducerById($id);


if($producer) { if($producer) {
$this->getUserModule()->getServices()->getBuilder()->switchProducer($user, $producer);
$this->getUserModule()->getBuilder()->switchProducer($user, $producer);
} }
else { else {
$this->addFlash('error', 'Producteur introuvable.'); $this->addFlash('error', 'Producteur introuvable.');

Loading…
Cancel
Save