strtolower issue with dropdown/multiselect attributes
infabo opened this issue · 2 comments
infabo commented
This is a breaker:
If available, mb_strtolower is used instead of PHP strtolower.
See here:
But ImportExport uses PHP strtolower for "getAttributeOptions":
It leads to a PHP notice and an not imported attribute value - when the option contains "Umlaute".
Notice: Undefined index: überspannungsschutz in /var/www/xyz/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product/Type/Simple.php on line 33
Attribute Option (actual value): Überspannungsschutz
$str = 'Überspannungsschutz';
strtolower($str) => Überspannungsschutz
mb_strtolower($str, mb_detect_encoding($str)) => überspannungsschutz
So my question to the original author of these lines
and or the helper fuction:
Why was it needed?