Fix: position of select key is 2 not 4 (#30374)

Fix: position of select key is 2 not 4
This commit is contained in:
Bahfir Abbes
2024-07-16 13:00:02 +02:00
committed by GitHub
parent a3edc5db66
commit 6d52e55702

View File

@@ -8,7 +8,7 @@
* Copyright (C) 2012-2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015-2022 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2016 Bahfir abbes <dolipar@dolipar.org>
* Copyright (C) 2016 Bahfir abbes <bafbes@gmail.com>
* Copyright (C) 2017 ATM Consulting <support@atm-consulting.fr>
* Copyright (C) 2017-2019 Nicolas ZABOURI <info@inovea-conseil.com>
* Copyright (C) 2017 Rui Strecht <rui.strecht@aliartalentos.com>
@@ -8242,7 +8242,7 @@ abstract class CommonObject
$selectkey = "rowid";
$keyList = 'rowid';
if (count($InfoFieldList) > 4 && !empty($InfoFieldList[4])) {
if (count($InfoFieldList) > 2 && !empty($InfoFieldList[2])) {
$selectkey = $InfoFieldList[2];
$keyList = $InfoFieldList[2].' as rowid';
}