You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
akeneo/module-magento2-connector-community 104.3.2 (also tested with 104.3.9)
Akeneo 7
Steps to reproduce
Create any Akeneo attribute for example "Connector" (different CamelCase) with option variants
Create any Magento attribute for example "connector" (different CamelCase) with option variants
Try to import
Expected result
All options should be imported from Akeneo to Magento
Actual result
There is a bug with MySQL query in the file: vendor/akeneo/module-magento2-connector-community/Job/Option.php
method mapOptions
There are 2 lines
1 . $connection->delete($tmpTable, ['attribute = ?' => $magentoAttribute]);
2. $options = $connection->select()->from($tmpTable)->where('attribute = ?', $akeneoAttribute);
When $magentoAttribute and $akeneoAttribute parameters have the same value with different CamelCase the first line just deletes everything and you have no data for $options
The possible solution is making the query sensitive for CamelCase
for example: $connection->delete($tmpTable, ['BINARY attribute = ?' => $magentoAttribute]);
and after getting options delete it from the $tmpTable table in the database to prevent duplicates
The text was updated successfully, but these errors were encountered:
Environment and configuration
Steps to reproduce
Expected result
Actual result
There is a bug with MySQL query in the file:
vendor/akeneo/module-magento2-connector-community/Job/Option.php
method mapOptions
There are 2 lines
1 .
$connection->delete($tmpTable, ['attribute = ?' => $magentoAttribute]);
2.
$options = $connection->select()->from($tmpTable)->where('attribute = ?', $akeneoAttribute);
When $magentoAttribute and $akeneoAttribute parameters have the same value with different CamelCase the first line just deletes everything and you have no data for $options
The possible solution is making the query sensitive for CamelCase
for example:
$connection->delete($tmpTable, ['BINARY attribute = ?' => $magentoAttribute]);
and after getting options delete it from the $tmpTable table in the database to prevent duplicates
The text was updated successfully, but these errors were encountered: