diff --git a/src/utils/ADempiere/contextUtils.js b/src/utils/ADempiere/contextUtils.js index 4f1a4505..2007ad73 100644 --- a/src/utils/ADempiere/contextUtils.js +++ b/src/utils/ADempiere/contextUtils.js @@ -201,13 +201,15 @@ export function getPreference({ // USER PREFERENCES // View Preferences - retValue = getContext({ - parentUuid: 'P' + parentUuid, - containerUuid, - columnName: columnName - }) - if (!isEmptyValue(retValue)) { - return retValue + if (parentUuid && containerUuid) { + retValue = getContext({ + parentUuid: 'P' + parentUuid, + containerUuid, + columnName: columnName + }) + if (!isEmptyValue(retValue)) { + return retValue + } } // Global Preferences