mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Fixed stopper issue (found with an audit) due to copies of DBObjectSearch not cloned (or not cloned well)
There is still one place where this should be fixed, but it reveals another bug so we've decided to leave it as is for the moment (see comment in DBObjectSearch::AddCondition_PointingTo) SVN:trunk[2497]
This commit is contained in:
@@ -94,7 +94,7 @@ function GetRuleResultFilter($iRuleId, $oDefinitionFilter, $oAppContext)
|
||||
if ($oRule->Get('valid_flag') == 'false')
|
||||
{
|
||||
// The query returns directly the invalid elements
|
||||
$oFilter = $oRuleFilter;
|
||||
$oFilter = $oRuleFilter;
|
||||
$oFilter->MergeWith($oDefinitionFilter);
|
||||
}
|
||||
else
|
||||
@@ -106,7 +106,7 @@ function GetRuleResultFilter($iRuleId, $oDefinitionFilter, $oAppContext)
|
||||
{
|
||||
$aValidIds[] = $aRow['id'];
|
||||
}
|
||||
$oFilter = clone $oDefinitionFilter;
|
||||
$oFilter = $oDefinitionFilter->DeepClone();
|
||||
if (count($aValidIds) > 0)
|
||||
{
|
||||
$aInDefSet = array();
|
||||
|
||||
Reference in New Issue
Block a user