svg
This commit is contained in:
@ -54,15 +54,15 @@ class IssueController extends AbstractController
|
|||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
if ($form->isSubmitted() && $form->isValid()) {
|
if ($form->isSubmitted() && $form->isValid()) {
|
||||||
$em->flush();
|
$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', [
|
return $this->render('issue/edit.html.twig', [
|
||||||
'usemenu' => true,
|
'usemenu' => true,
|
||||||
'usesidebar' => true,
|
'usesidebar' => false,
|
||||||
'title' => $issue->getRedmine()['subject'],
|
'title' => $issue->getRedmine()['subject'],
|
||||||
'routecancel' => 'app_admin_project',
|
'routecancel' => 'app_project_view',
|
||||||
'routedelete' => 'app_admin_project_delete',
|
|
||||||
'mode' => 'update',
|
'mode' => 'update',
|
||||||
'form' => $form,
|
'form' => $form,
|
||||||
'issue' => $issue,
|
'issue' => $issue,
|
||||||
|
@ -19,7 +19,7 @@ Modification Issue = {{title}}
|
|||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form) }}
|
||||||
{{ form_widget(form.submit) }}
|
{{ 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') %}
|
{% include('include/error.html.twig') %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user