浏览代码

Fixed bug with the serialization of a multi-object OQL (hard to reproduce)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2147 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 年之前
父节点
当前提交
1e3a297dfa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/dbobjectsearch.class.php

+ 1 - 1
core/dbobjectsearch.class.php

@@ -926,7 +926,7 @@ class DBObjectSearch
 		$sSelectedClasses = implode(', ', array_keys($this->m_aSelectedClasses));
 		$sSelectedClasses = implode(', ', array_keys($this->m_aSelectedClasses));
 		$sRes = 'SELECT '.$sSelectedClasses.' FROM';
 		$sRes = 'SELECT '.$sSelectedClasses.' FROM';
 
 
-		$sRes .= ' '.$this->GetClass().' AS '.$this->GetClassAlias();
+		$sRes .= ' '.$this->GetFirstJoinedClass().' AS '.$this->GetFirstJoinedClassAlias();
 		$sRes .= $this->ToOQL_Joins();
 		$sRes .= $this->ToOQL_Joins();
 		$sRes .= " WHERE ".$this->m_oSearchCondition->Render($aParams, $bRetrofitParams);
 		$sRes .= " WHERE ".$this->m_oSearchCondition->Render($aParams, $bRetrofitParams);