Sfoglia il codice sorgente

[Administration] Correcit switchProducer

feature/souke
Guillaume Bourgeois 1 anno fa
parent
commit
9abda816a7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      backend/controllers/SiteController.php

+ 1
- 1
backend/controllers/SiteController.php Vedi 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…
Annulla
Salva