Commit e75f8799 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

On peut maintenant ne pas choisir de projet lors de la modification du projet...

On peut maintenant ne pas choisir de projet lors de la modification du projet d'une activité pour obtenir une activité sans projet
parent 68b1d86c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1297,10 +1297,10 @@ class ProjectGrantController extends AbstractOscarController
            /** @var \Zend\Http\Request $request */
            $request = $this->getRequest();
            if ($request->isPost()) {
                try{
                    $project = $this->getProjectService()->getProject($request->getPost('project_id'));
                if (!$project) {
                    throw new \Exception('Aucun projet ne correspond');
                }
                } catch (\Exception $e) {}

                if ($entity->getProject()) {
                    $entity->getProject()->touch();
                }