Commit e311a657 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction #52301 et #52261

parent c0293552
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Dossier\Controller;


use Application\Controller\AbstractController;
use Application\Provider\Privilege\Privileges;
use Dossier\Entity\Db\Employeur;
use Dossier\Form\Traits\EmployeurSaisieFormAwareTrait;
use Dossier\Service\Traits\EmployeurServiceAwareTrait;
@@ -23,11 +24,12 @@ class EmployeurController extends AbstractController

    public function indexAction ()
    {
        $canEdit    = $this->isAllowed(Privileges::getResourceId(Privileges::REFERENTIEL_COMMUN_EMPLOYEUR_EDITION));
        $critere    = $this->params()->fromPost('critere');
        $employeurs = $this->getServiceEmployeur()->rechercheEmployeur($critere, 1000);


        return compact('employeurs');
        return compact('employeurs', 'canEdit');
    }


+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
                <input type="submit" value="chercher"/>
            </form>
        </div>
        <?= $this->partial('liste', compact('employeurs')); ?>
        <?= $this->partial('liste', compact('employeurs', 'canEdit')); ?>

    </div>