N°2598 - When refreshing a list, loosing page and order - change of dashboard refresh mecanism

This commit is contained in:
acognet
2021-02-15 16:54:46 +01:00
parent 4c23f1f32b
commit dbe747ea23
27 changed files with 422 additions and 346 deletions

View File

@@ -7,8 +7,10 @@
namespace Combodo\iTop\Controller;
use AjaxPage;
use ApplicationContext;
use ApplicationMenu;
use AttributeLinkedSet;
use BinaryExpression;
use BulkExport;
use BulkExportException;
use CMDBObjectSet;
@@ -23,8 +25,10 @@ use DBSearch;
use Dict;
use Exception;
use ExecutionKPI;
use Expression;
use InlineImage;
use MetaModel;
use ScalarExpression;
use utils;
class AjaxRenderController
@@ -345,7 +349,7 @@ class AjaxRenderController
if ($bSaveAsDefaults) {
if ($sTableId != null) {
$oCurrSettings = DataTableSettings::GetTableSettings($aClassAliases, $sTableId, true /* bOnlyTable */);
$oCurrSettings = unserialize(DataTableSettings::GetTableSettings($aClassAliases, $sTableId, true /* bOnlyTable */));
if ($oCurrSettings) {
$oCurrSettings->ResetToDefault(false); // Reset this table to the defaults
}