Skip to content

Commit

Permalink
Move position field from admin to core ProductImageType
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Sep 25, 2024
1 parent 6901ad3 commit 3ab1eac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Sylius/Bundle/AdminBundle/Form/Type/ProductImageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Sylius\Component\Core\Model\ProductInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\FormBuilderInterface;

final class ProductImageType extends AbstractType
Expand Down Expand Up @@ -47,10 +46,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
},
'autocomplete' => true,
])
->add('position', IntegerType::class, [
'label' => 'sylius.ui.position',
'required' => false,
])
;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
use Sylius\Component\Core\Model\ProductInterface;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
Expand Down Expand Up @@ -50,6 +51,10 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
;
},
])
->add('position', IntegerType::class, [
'label' => 'sylius.ui.position',
'required' => false,
])
;
}
}
Expand Down

0 comments on commit 3ab1eac

Please sign in to comment.