Commit 6d8cb77e authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Fix PCRU administration

parent 9d17f5f4
Loading
Loading
Loading
Loading
Loading
+15 −8
Original line number Diff line number Diff line
@@ -743,6 +743,7 @@ class AdministrationController extends AbstractOscarController implements
                $this->getPCRUService()->updateTypeContrat();
                $this->getPCRUService()->updatePoleCompetitivite();
                $this->getPCRUService()->updateSourcesFinancement();
                $this->getPCRUService()->updatePcruTypesEtablissement();
                $this->flashMessenger()->addSuccessMessage('Les référentiels PCRU ont été mis à jour');
                $this->redirect()->toRoute('administration/accueil');
                return [];
@@ -1938,7 +1939,9 @@ class AdministrationController extends AbstractOscarController implements
                    ),
                    'pcru_user' => $this->getOscarConfigurationService()->getEditableConfKey('pcru_user', ''),
                    'pcru_pass' => $this->getOscarConfigurationService()->getEditableConfKey('pcru_pass', ''),
                    'pcru_ssh' => $this->getOscarConfigurationService()->getEditableConfKey('pcru_ssh', ''),
                    'pcru_ssh_private'      => $this->getOscarConfigurationService()->getEditableConfKey('pcru_ssh_private', ''),
                    'pcru_ssh_public'       => $this->getOscarConfigurationService()->getEditableConfKey('pcru_ssh_public', ''),
                    'pcru_ssh_private_pass' => $this->getOscarConfigurationService()->getEditableConfKey('pcru_ssh_private_pass', ''),
                    'pcru_port' => $this->getOscarConfigurationService()->getEditableConfKey(
                        'pcru_port',
                        31000
@@ -1947,6 +1950,7 @@ class AdministrationController extends AbstractOscarController implements
                    // Conf
                    'pcru_incharge_role' => $this->getOscarConfigurationService()->getPcruInChargeRole(),
                    'pcru_partner_roles' => $this->getOscarConfigurationService()->getPcruPartnerRoles(),
                    'pcru_partenaire_principal_roles' => $this->getOscarConfigurationService()->getPcruPartenairePrincipalRoles(),
                    'pcru_unit_roles' => $this->getOscarConfigurationService()->getPcruUnitRoles(),
                    'pcru_contract_type' => $this->getOscarConfigurationService()->getPcruContractType(),

@@ -1969,10 +1973,13 @@ class AdministrationController extends AbstractOscarController implements
                    'pcru_port'             => $this->params()->fromPost('port'),
                    'pcru_user'             => $this->params()->fromPost('user'),
                    'pcru_pass'             => $this->params()->fromPost('pass'),
                    'pcru_ssh' => $this->params()->fromPost('ssh'),
                    'pcru_ssh_private'      => $this->params()->fromPost('ssh_private'),
                    'pcru_ssh_public'       => $this->params()->fromPost('ssh_public'),
                    'pcru_ssh_private_pass' => $this->params()->fromPost('ssh_private_pass'),
                ];

                $partnerRolesPosted = $this->params()->fromPost('pcru_partner_roles', []);
                $partenairePrincipalRolesPosted = $this->params()->fromPost('pcru_partenaire_principal_roles', []);
                $unitRolesPosted = $this->params()->fromPost('pcru_unit_roles', []);
                $inchargeRolePosted = $this->params()->fromPost('pcru_incharge_role', '');
                $contractType = $this->params()->fromPost('pcru_contract_type', '');