mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°1724 - Fix external key search error when an UNION is used as a filter in the datamodel
This commit is contained in:
@@ -203,7 +203,7 @@ class SearchForm
|
||||
}
|
||||
|
||||
$oBaseSearch = $oSearch->DeepClone();
|
||||
if (method_exists($oSearch, 'GetCriteria'))
|
||||
if ($oSearch instanceof DBObjectSearch)
|
||||
{
|
||||
$oBaseSearch->ResetCondition();
|
||||
}
|
||||
@@ -495,7 +495,7 @@ class SearchForm
|
||||
$bIsEmptyExpression = true;
|
||||
$aArgs = MetaModel::PrepareQueryArguments($aArgs, $oSearch->GetInternalParams());
|
||||
|
||||
if (method_exists($oSearch, 'GetCriteria'))
|
||||
if ($oSearch instanceof DBObjectSearch)
|
||||
{
|
||||
$oExpression = $oSearch->GetCriteria();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user