N°2508 - Include Obsolescence icon within list and autocomplete - case of search filters

This commit is contained in:
acognet
2021-01-08 09:48:35 +01:00
parent 354fc1949b
commit 06ecfb5814
3 changed files with 40 additions and 14 deletions

View File

@@ -485,7 +485,7 @@ class SearchForm
$aAllowedValues = array();
while ($oObject = $oSet->Fetch())
{
$aAllowedValues[$oObject->GetKey()] = $oObject->GetName();
$aAllowedValues[] = ["value"=>$oObject->GetKey(), "label" => $oObject->GetName(), "obsolescence_flag"=>$oObject->IsObsolete()?"1":"0", "additional_field" => "je sais pas"];
}
return array('values' => $aAllowedValues);
}
@@ -522,8 +522,7 @@ class SearchForm
}
}
}
$aAllowedValues = $oAttrDef->GetAllowedValues();
$aAllowedValues = $oAttrDef->GetAllowedValuesForSelect();
return array('values' => $aAllowedValues);
}