mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
The "Preferences" pages now allows a user to:
- change her/his favorite language - set a global default for the length of all lists, overriding the system-wide configuration. SVN:trunk[2138]
This commit is contained in:
@@ -102,7 +102,7 @@ class DataTable
|
||||
$sHtml .= "<tr><td>$sPager</td><td class=\"menucontainer\">$sToolkitMenu</td></tr>\n";
|
||||
$sHtml .= "<tr><td class=\"datacontents\" colspan=\"2\">$sDataTable</td></tr>\n";
|
||||
$sHtml .= "</table>\n";
|
||||
$sHtml .= $sConfigDlg;
|
||||
$oPage->add_at_the_end($sConfigDlg);
|
||||
|
||||
$aOptions = array(
|
||||
'sPersistentId' => '',
|
||||
@@ -618,8 +618,7 @@ class DataTableSettings implements Serializable
|
||||
if ($aFieldData) $aColumns[$sAlias][$sAttCode] = $aFieldData;
|
||||
}
|
||||
}
|
||||
// TODO retrieve the user default page size or the system wide setting
|
||||
$iDefaultPageSize = MetaModel::GetConfig()->GetMinDisplayLimit();
|
||||
$iDefaultPageSize = appUserPreferences::GetPref('default_page_size', MetaModel::GetConfig()->GetMinDisplayLimit());
|
||||
$oSettings->Init($iDefaultPageSize, $aSortOrder, $aColumns);
|
||||
return $oSettings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user