akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

Channel without translation doesn't show up on channel field of Export profile #6004

Closed nei closed 7 years ago

nei commented 7 years ago

I'm reporting a Bug

When the channel have no translation, (table pim_catalog_channel_translation is empty) the Channel dropdown on the export profile stay empty.

screen shot 2017-03-29 at 6 15 22 pm

I believe it should show the code or something but not empty.

My details:

PIM 1.7.1 PIM EE

nei commented 7 years ago

Hi,

My issue may be related to the initBundle only since the connector https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Component/Connector/ArrayConverter/FlatToStandard/Channel.php#L83 expect label prefix.

Not sure if you can have a channel without translation if you are not using the initBundle, if yes so I would say this issue still valid for pim.

Init example file says that:

screen shot 2017-03-30 at 3 33 39 pm

But to have the translation fixed you must use the prefix like this.

screen shot 2017-03-30 at 3 33 49 pm

@jmleroux

jmleroux commented 7 years ago

Thx @nei , i've made a PR for your fix: https://github.com/akeneo/ExcelInitBundle/pull/36

I think we can continue on it and close this one.

mickaelandrieu commented 7 years ago

Hello,

I agree with @jmleroux.

Thank you for your feedback @nei!