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

@@ -143,7 +143,7 @@ class SiteController extends BackendController
$producer = $this->getProducerContainer()->getRepository()->findOneProducerById($id);

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

Loading…
Cancel
Save