mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Start with an empty selection of category when a new part is created, so that the user has to manually select it
This commit is contained in:
parent
3ad088663f
commit
c9aefdd862
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ class PartBaseType extends AbstractType
|
|||
'dto_value' => $dto?->category,
|
||||
'label' => 'part.edit.category',
|
||||
'disable_not_selectable' => true,
|
||||
//Do not require category for new parts, so that the user must select the category by hand and cannot forget it (the requirement is handled by the constraint in the entity)
|
||||
'required' => !$new_part,
|
||||
])
|
||||
->add('footprint', StructuralEntityType::class, [
|
||||
'class' => Footprint::class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue