From 1f750bb12d3b342eb8d48abbca68a927c43bbecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Mon, 20 Apr 2020 14:06:14 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02902=20Fix=20alias=20renaming=20when=20a?= =?UTF-8?q?lready=20exists=20in=20one=20OQL=20of=20an=20UNION=20The=20lega?= =?UTF-8?q?cy=20impl=20is=20not=20modified?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dbobjectsearch.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbobjectsearch.class.php b/core/dbobjectsearch.class.php index bff609535..8ee0863bb 100644 --- a/core/dbobjectsearch.class.php +++ b/core/dbobjectsearch.class.php @@ -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)) {