mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-12 02:11:00 +01:00
Fixed issue with removing the bom entries caused by the multiple collapse rows
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
namespace App\Form\AdminPages;
|
||||
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Form\ProjectSystem\ProjectBOMEntryCollectionType;
|
||||
use App\Form\ProjectSystem\ProjectBOMEntryType;
|
||||
use App\Form\Type\RichTextEditorType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
|
||||
@@ -41,16 +42,6 @@ class ProjectAdminForm extends BaseEntityAdminForm
|
||||
],
|
||||
]);
|
||||
|
||||
$builder->add('bom_entries', CollectionType::class, [
|
||||
'entry_type' => ProjectBOMEntryType::class,
|
||||
'entry_options' => [
|
||||
'label' => false,
|
||||
],
|
||||
'allow_add' => true,
|
||||
'allow_delete' => true,
|
||||
'by_reference' => false,
|
||||
'reindex_enable' => true,
|
||||
'label' => false,
|
||||
]);
|
||||
$builder->add('bom_entries', ProjectBOMEntryCollectionType::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user