mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-21 11:24:40 +02:00
Fixed error mapping for orderdetails edit page.
This commit is contained in:
parent
d47e482b3c
commit
6e34cc3633
5 changed files with 15 additions and 12 deletions
|
@ -53,7 +53,7 @@ class OrderdetailType extends AbstractType
|
|||
|
||||
$builder->add('supplier', StructuralEntityType::class, ['class' => Supplier::class, 'disable_not_selectable' => true]);
|
||||
|
||||
$builder->add('supplierProductUrl', UrlType::class, [
|
||||
$builder->add('supplier_product_url', UrlType::class, [
|
||||
'required' => false,
|
||||
'empty_data' => ""
|
||||
]);
|
||||
|
@ -64,7 +64,7 @@ class OrderdetailType extends AbstractType
|
|||
]);
|
||||
|
||||
//Attachment section
|
||||
$builder->add('priceDetails', CollectionType::class, [
|
||||
$builder->add('pricedetails', CollectionType::class, [
|
||||
'entry_type' => PricedetailType::class,
|
||||
'allow_add' => true, 'allow_delete' => true,
|
||||
'label' => false,
|
||||
|
|
|
@ -145,7 +145,7 @@ class PartBaseType extends AbstractType
|
|||
]);
|
||||
|
||||
//Attachment section
|
||||
$builder->add('orderDetails', CollectionType::class, [
|
||||
$builder->add('orderdetails', CollectionType::class, [
|
||||
'entry_type' => OrderdetailType::class,
|
||||
'allow_add' => true, 'allow_delete' => true,
|
||||
'label' => false,
|
||||
|
|
|
@ -47,8 +47,8 @@ class PricedetailType extends AbstractType
|
|||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add("minDiscountQuantity", IntegerType::class);
|
||||
$builder->add("priceRelatedQuantity", IntegerType::class);
|
||||
$builder->add("min_discount_quantity", IntegerType::class);
|
||||
$builder->add("price_related_quantity", IntegerType::class);
|
||||
$builder->add("price", NumberType::class);
|
||||
$builder->add("currency", CurrencyEntityType::class, ['required' => false]);
|
||||
}
|
||||
|
@ -57,6 +57,7 @@ class PricedetailType extends AbstractType
|
|||
{
|
||||
$resolver->setDefaults([
|
||||
'data_class' => Pricedetail::class,
|
||||
'error_bubbling' => false
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue