N°2272 Fix calls to DBObjectSet::OptimizeColumnLoad() in the portal (now requires ClassAlias to always be specified)

This commit is contained in:
Molkobain
2019-11-27 10:39:24 +01:00
parent f1d0418e48
commit 603ae8c0e1
5 changed files with 23 additions and 26 deletions

View File

@@ -16,8 +16,6 @@
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*
*
*/
namespace Combodo\iTop\Portal\Controller;
@@ -1245,7 +1243,7 @@ class ObjectController extends BrickController
$oSearch->AllowAllData();
}
$oSet = new DBObjectSet($oSearch, array(), $aParams);
$oSet->OptimizeColumnLoad($aObjectAttCodes);
$oSet->OptimizeColumnLoad(array($oSearch->GetClassAlias() => $aObjectAttCodes));
// Retrieving objects
while ($oObject = $oSet->Fetch())