FriendsOfAkeneo / CustomEntityBundle

Eases the creation of custom entity and related views in the PIM
Other
53 stars 61 forks source link

TranslatableEntities generate error when selecting values in product attribute #180

Closed ptitkosmos closed 6 years ago

ptitkosmos commented 6 years ago

When selecting a value in product attribut, an error occured due to a wrong named options in the findBySearchQB function in the TranslatableCustomEntityRepository

->setParameter('localeCode', $options['dataLocale']);

$options values are :

Array ( [type] => code [limit] => 20 [page] => 1 _[catalogLocale] => enGB )

Message :

Notice: Undefined index: dataLocale in /srv/pim/vendor/akeneo-labs/custom-entity-bundle/Entity/Repository/TranslatableCustomEntityRepository.php on line 45

jmleroux commented 6 years ago

Hello @ptitkosmos ,

which versions of PIM and extension are you using?

ptitkosmos commented 6 years ago

Hello @jmleroux, i'm using Akeneo 2.2.3 and CustomEntities 2.2.0.

But nevermind, this issue is due to a lack in documentation. The extension needs to be defined after PimBundleUI in order to override the ajax controller.

You can close this issue, or retag to MissingDocumentation.

Thanks for your quick reply.

jmleroux commented 6 years ago

Thank you for the feedback on the doc!