This commit is contained in:
2025-07-11 23:09:44 +02:00
parent 056e3d7abc
commit 59a426bc27
2 changed files with 5 additions and 5 deletions

View File

@ -54,15 +54,15 @@ class IssueController extends AbstractController
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$em->flush();
// return $this->redirectToRoute('app_admin_project');
return $this->redirectToRoute('app_project_view', ['id' => $issue->getProject()->getId()]);
}
return $this->render('issue/edit.html.twig', [
'usemenu' => true,
'usesidebar' => true,
'usesidebar' => false,
'title' => $issue->getRedmine()['subject'],
'routecancel' => 'app_admin_project',
'routedelete' => 'app_admin_project_delete',
'routecancel' => 'app_project_view',
'mode' => 'update',
'form' => $form,
'issue' => $issue,

View File

@ -19,7 +19,7 @@ Modification Issue = {{title}}
{{ form_start(form) }}
{{ form_widget(form.submit) }}
<a href="{{ path(routecancel) }}" class="btn btn-secondary ms-1">Annuler</a>
<a href="{{ path(routecancel,{id:issue.project.id}) }}" class="btn btn-secondary ms-1">Annuler</a>
{% include('include/error.html.twig') %}