forked from mirror/Part-DB.Part-DB-server
Fixed some inspection issues.
This commit is contained in:
parent
f7c2f1032f
commit
21a81486df
24 changed files with 64 additions and 84 deletions
|
@ -108,7 +108,9 @@ abstract class BaseAdminController extends AbstractController
|
|||
$this->addFlash('success', $this->translator->trans('entity.created_flash'));
|
||||
|
||||
return $this->redirectToRoute($this->route_base . '_edit', ['id' => $new_entity->getID()]);
|
||||
} elseif ($form->isSubmitted() && ! $form->isValid()) {
|
||||
}
|
||||
|
||||
if ($form->isSubmitted() && ! $form->isValid()) {
|
||||
$this->addFlash('error', $this->translator->trans('entity.created_flash.invalid'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue