mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed some exceptions.
This commit is contained in:
parent
7fa4f09885
commit
1460894946
2 changed files with 11 additions and 3 deletions
|
@ -400,8 +400,8 @@ abstract class BaseAdminController extends AbstractController
|
|||
return $this->renderForm($this->twig_template, [
|
||||
'entity' => $new_entity,
|
||||
'form' => $form,
|
||||
'import_form' => $import_form->createView(),
|
||||
'mass_creation_form' => $mass_creation_form->createView(),
|
||||
'import_form' => $import_form,
|
||||
'mass_creation_form' => $mass_creation_form,
|
||||
'route_base' => $this->route_base,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -295,9 +295,17 @@ class PartBaseType extends AbstractType
|
|||
|
||||
$builder
|
||||
//Buttons
|
||||
->add('save', SubmitType::class, ['label' => 'part.edit.save'])
|
||||
->add('save', SubmitType::class, [
|
||||
'label' => 'part.edit.save',
|
||||
'attr' => [
|
||||
'value' => 'save'
|
||||
]
|
||||
])
|
||||
->add('save_and_clone', SubmitType::class, [
|
||||
'label' => 'part.edit.save_and_clone',
|
||||
'attr' => [
|
||||
'value' => 'save-and-clone'
|
||||
]
|
||||
])
|
||||
->add('reset', ResetType::class, ['label' => 'part.edit.reset']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue