N°3988 - Investigate small list taking a very long time to load

This commit is contained in:
acognet
2021-04-29 15:00:05 +02:00
parent 6fc3033100
commit 227c90b47f
2 changed files with 14 additions and 26 deletions

View File

@@ -1,20 +1,7 @@
<?php
/**
* Copyright (C) 2013-2021 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
/*
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
/**
@@ -2434,17 +2421,21 @@ abstract class DBObject implements iDisplay
* Reset during {@see DBObject::DBUpdate()}
* @throws Exception
* @uses m_aCurrValues
*/
*/
public function ListChanges()
{
if ($this->m_bIsInDB)
{
if ($this->m_bIsInDB) {
return $this->ListChangedValues($this->m_aCurrValues);
}
return $this->m_aCurrValues;
}
public function GetCurrentValues()
{
return $this->m_aCurrValues;
}
/**
* @api
* @api-advanced