Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix: No value obtained from context in smart browser (#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Apr 25, 2024
1 parent 85364c8 commit 0c16925
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/store/modules/ADempiere/dictionary/browser/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import router from '@/router'
import store from '@/store'

// API Request Methods
import { requestBrowserMetadata } from '@/api/ADempiere/dictionary/smart-browser.js'
import { requestBrowserMetadata } from '@/api/ADempiere/dictionary/index.ts'

// Constants
import {
Expand Down Expand Up @@ -210,7 +210,8 @@ export default {
return Promise.resolve(processDefinition)
}
return dispatch('getProcessDefinitionFromServer', {
id: process.id.toString()
id: process.id.toString(),
containerUuidAssociated: browserDefinition.uuid
})
},
...process,
Expand Down
6 changes: 4 additions & 2 deletions src/store/modules/ADempiere/dictionary/process/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export default {
* @param {string} uuid of dictionary
*/
getProcessDefinitionFromServer({ dispatch, rootGetters }, {
id
id,
containerUuidAssociated
}) {
const language = rootGetters['getCurrentLanguage']
const clientId = getCurrentClient()
Expand All @@ -77,7 +78,8 @@ export default {
})
.then(processResponse => {
const { processDefinition } = generateProcess({
processToGenerate: processResponse
processToGenerate: processResponse,
containerUuidAssociated
})

dispatch('addProcessToList', processDefinition)
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/ADempiere/dictionary/window/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default {
if (!isEmptyValue(attributeNameControl)) {
value = state.storedWindows[uuid][attributeNameControl]
}
if (isEmptyValue(state.storedWindows[uuid])) return

Vue.set(state.storedWindows[uuid], attributeName, value)
// state.storedWindows[uuid][attributeName] = value
Expand Down
1 change: 1 addition & 0 deletions src/utils/ADempiere/dictionary/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export function generateProcess({

const additionalAttributes = {
containerUuid: processToGenerate.uuid,
parentUuid: containerUuidAssociated,
panelName: processToGenerate.name,
isEvaluateValueChanges: true,
isEditSecuence: false,
Expand Down

0 comments on commit 0c16925

Please sign in to comment.