Skip to content

Commit 1451aac

Browse files
committed
fixed section update save button v2
1 parent 363dc03 commit 1451aac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/bundle/Controller/SectionController.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,22 @@ public function updateAction(Request $request, Section $section): Response
364364
['%name%' => $section->name],
365365
'ibexa_section'
366366
);
367+
368+
return new RedirectResponse($this->generateUrl('ibexa.section.view', [
369+
'sectionId' => $section->id,
370+
]));
371+
367372
} catch (Exception $e) {
368373
$this->notificationHandler->error(/** @Ignore */
369374
$e->getMessage()
370375
);
371376
}
372377
}
373378

374-
return new RedirectResponse($this->generateUrl('ibexa.section.view', [
375-
'sectionId' => $section->id,
376-
]));
379+
return $this->render('@ibexadesign/section/update.html.twig', [
380+
'section' => $section,
381+
'form_section_update' => $form,
382+
]);
377383
}
378384

379385
/**

0 commit comments

Comments
 (0)