synolia / oroneo

Other
11 stars 5 forks source link

The localized configuration fails to display #2

Closed gplanchat closed 7 years ago

gplanchat commented 7 years ago

There have been a refactoring on the last commit, version 0.2.0, the localization configuration breaks :

Fatal error: Uncaught Error: Call to undefined method Oro\Bundle\LocaleBundle\Helper\LocalizationHelper::getAll() in /.../vendor/synolia/oroneo/Manager/OroFieldSelectManager.php:59 Stack trace:
#0 /.../vendor/synolia/oroneo/Form/Type/LocalizationMappingType.php(50): Synolia\Bundle\OroneoBundle\Manager\OroFieldSelectManager->getLocalizationChoices()
#1 /.../vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php(187): Synolia\Bundle\OroneoBundle\Form\Type\LocalizationMappingType->buildForm(Object(Symfony\Component\Form\FormBuilder), Array)
#2 /.../vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php(110): Symfony\Component\Form\ResolvedFormType->buildForm(Object(Symfony\Component\Form\FormBuilder), Array)

I'll look into the code

Djamy commented 7 years ago

Hi, and thanks for this issue.

We know about this bug and it's fixed but not yet released.

We have planned to commit a new minor version today with this fixed and some others adjustments :)

Djamy commented 7 years ago

You'll find the fix here if you want to check it.

That should resolve this issue but reopen it if it is not the case.

gplanchat commented 7 years ago

Yes, it works now

Thanks