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:
Denis Flaven
2012-07-27 10:06:07 +00:00
parent e726420a94
commit 54f81153f3
3 changed files with 8 additions and 11 deletions

View File

@@ -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;
}