oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Using 'choice' as name for a form does not work anymore #1040

Open hvanoch opened 3 years ago

hvanoch commented 3 years ago

Summary
In src/Oro/Bundle/DashboardBundle/EventListener/WidgetConfigurationLoadListener.php:64 "choice" is being used as type, but this does not work anymore in the current symfony version and should be changed to Symfony\Component\Form\Extension\Core\Type\ChoiceType:class

Steps to reproduce
Update to latest symfony 4.4 go to dashboard page and add a grid as widget. Something like:

dashboards:
  widgets:
    rental_widget:
      label: Rental overview
      acl: oms_rental_view
      description: This widgets shows all rentals
      route: oro_dashboard_grid
      route_parameters:
        gridName: rental-grid
        widget: rental_widget

Actual Result Error being thrown on widget configuration screen: image

Expected Result
Form that shows up

Details about your environment