mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed PHPUnit issues.
This commit is contained in:
parent
6602015a5a
commit
f53c80c442
1 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,7 @@ class PartController extends AbstractController
|
|||
$this->addFlash('info', 'part.edited_flash');
|
||||
|
||||
//Redirect to clone page if user wished that...
|
||||
//@phpstan-ignore-next-line
|
||||
if ("save_and_clone" === $form->getClickedButton()->getName()) {
|
||||
return $this->redirectToRoute('part_clone', ['id' => $part->getID()]);
|
||||
}
|
||||
|
@ -308,6 +309,7 @@ class PartController extends AbstractController
|
|||
$this->addFlash('success', 'part.created_flash');
|
||||
|
||||
//Redirect to clone page if user wished that...
|
||||
//@phpstan-ignore-next-line
|
||||
if ("save_and_clone" === $form->getClickedButton()->getName()) {
|
||||
return $this->redirectToRoute('part_clone', ['id' => $new_part->getID()]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue