Commit 8db77f51 authored by Chenu Denis's avatar Chenu Denis

[fix] Better unsure unicty in list

parent 1b219005
......@@ -690,11 +690,11 @@ class oecdMenu extends \ls\pluginmanager\PluginBase
$aUnicity = array();
foreach($oResponses as $oResponse) {
$attributeUnicity = $englishNameColumn;
$valueUnicity= trim($oResponse->$attributeUnicity);
if(in_array($oResponse->$attributeUnicity,$aUnicity)) {
$valueUnicity= trim(strtolower($oResponse->$attributeUnicity));
if(in_array($valueUnicity,$aUnicity)) {
continue;
}
if($aUnicity == "") {
if($valueUnicity == "") {
continue;
}
$aUnicity[] = $valueUnicity;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment