mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°2902 Fix alias renaming when already exists in one OQL of an UNION
The legacy impl is not modified
This commit is contained in:
committed by
Pierre Goiffon
parent
5b60ec9edf
commit
1f750bb12d
@@ -223,9 +223,9 @@ class DBObjectSearch extends DBSearch
|
||||
public function RenameAlias($sOldName, $sNewName)
|
||||
{
|
||||
$bFound = false;
|
||||
if (array_key_exists($sOldName, $this->m_aClasses))
|
||||
if (!array_key_exists($sOldName, $this->m_aClasses))
|
||||
{
|
||||
$bFound = true;
|
||||
return false;
|
||||
}
|
||||
if (array_key_exists($sNewName, $this->m_aClasses))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user