@@ -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.'); |