N°1408 - Fix Object print page for attributes dashboard

This commit is contained in:
Eric
2018-10-09 11:41:29 +02:00
parent 15671f6dd4
commit 94b4f10277
3 changed files with 4 additions and 3 deletions

View File

@@ -333,7 +333,7 @@ function SetUserPreference(sPreferenceCode, sPrefValue, bPersistent) {
*/
function GetUserPreference(sPreferenceCode, sDefaultValue) {
var value = sDefaultValue;
if (oUserPreferences[sPreferenceCode] != undefined) {
if ((typeof(oUserPreferences) !== 'undefined') && (typeof(oUserPreferences[sPreferenceCode]) !== 'undefined')) {
value = oUserPreferences[sPreferenceCode];
}
return value;