mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 23:18:43 +02:00
Advanced Search: Support of external fields (as strings)
SVN:b1162[5583]
This commit is contained in:
@@ -417,8 +417,15 @@ class SearchForm
|
||||
{
|
||||
if (!is_null($oAttDef) && ($oAttDef->GetSearchType() != AttributeDefinition::SEARCH_WIDGET_TYPE_RAW))
|
||||
{
|
||||
$sLabel = $oAttDef->GetLabel();
|
||||
|
||||
if (method_exists($oAttDef, 'GetLabelForSearchField'))
|
||||
{
|
||||
$sLabel = $oAttDef->GetLabelForSearchField();
|
||||
}
|
||||
else
|
||||
{
|
||||
$sLabel = $oAttDef->GetLabel();
|
||||
}
|
||||
|
||||
if (method_exists($oAttDef, 'GetTargetClass'))
|
||||
{
|
||||
$sTargetClass = $oAttDef->GetTargetClass();
|
||||
|
||||
Reference in New Issue
Block a user