#702 The second implementation of this fix was still incomplete (not compatible with some constraint queries)

SVN:2.0[2695]
This commit is contained in:
Romain Quetiez
2013-04-17 16:12:54 +00:00
parent b9fae09164
commit 473f7571d7

View File

@@ -128,6 +128,14 @@ class DBObjectSearch
{
$sAlias = $this->GetClassAlias();
}
else
{
if (!array_key_exists($sAlias, $this->m_aClasses))
{
// discard silently - necessary when recursing on the related nodes (see code below)
return;
}
}
$sCurrClass = $this->GetClassName($sAlias);
if (!MetaModel::IsParentClass($sCurrClass, $sNewClass))
{