1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

In case the 2 or more join aliases point to the same table, now

the first alias get's saved instead of the last one.
This commit is contained in:
Achim Ennenbach
2018-06-21 21:23:42 +02:00
committed by Nick Liu
parent 0a3acb2f6d
commit e96aea8748

View File

@@ -3934,7 +3934,7 @@ class e_admin_controller_ui extends e_admin_controller
$keys = array();
foreach($matches[1] AS $k=>$v)
{
if(varset($matches[3][$k]))
if(varset($matches[3][$k]) && !array_key_exists($v, $this->joinAlias))
{
$this->joinAlias[$v] = $matches[3][$k]; // array. eg $this->joinAlias['core_media'] = 'm';
}