Skip to content

Commit

Permalink
Fix: Container In Key (PanJiaChen#2441)
Browse files Browse the repository at this point in the history
* Fix: Container In Key

* Fix: Container In Key
  • Loading branch information
Ricargame authored Jul 13, 2024
1 parent cb25ceb commit 59b7cec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/store/modules/ADempiere/lookupManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ const lookupManager = {
const clientId = rootGetters.getSessionContextClientId

let key = clientId
if (!isEmptyValue(containerUuid)) {
key += `|${containerUuid}`
}
if (!isEmptyValue(fieldId)) {
key += `|${fieldUuid}`
} else if (!isEmptyValue(processParameterId)) {
Expand All @@ -172,7 +175,6 @@ const lookupManager = {
} else if (!isEmptyValue(tableName) && !isEmptyValue(columnName)) {
key += `|${tableName}.${columnName}`
}

const contextKey = generateContextKey(contextAttributesList)
key += contextKey
let contextAttributes
Expand Down Expand Up @@ -276,6 +278,9 @@ const lookupManager = {
uuid
}) => {
let key = rootGetters.getSessionContextClientId
if (!isEmptyValue(containerUuid)) {
key += `|${containerUuid}`
}
if (!isEmptyValue(uuid)) {
key += `|${uuid}`
}
Expand All @@ -290,7 +295,6 @@ const lookupManager = {
}
const contextKey = generateContextKey(contextAttributesList)
key += contextKey

const lookupList = state.lookupList[key]
if (lookupList) {
return lookupList
Expand Down

0 comments on commit 59b7cec

Please sign in to comment.