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

Commit

Permalink
Fix: Save When Editing Mnemonic Command (#2946)
Browse files Browse the repository at this point in the history
* Fix: Save When Editing Mnemonic Command

* Fix: Save When Editing Mnemonic Command

* Fix: Save When Editing Mnemonic Command
  • Loading branch information
Ricargame authored Nov 15, 2024
1 parent 9ca99db commit 58f426f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/components/ADempiere/TabManager/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1049,24 +1049,29 @@ export default defineComponent({
}

store.dispatch('fieldListInfo', { info })

const currentRoute = router.app._route

const recordUuid = store.getters.getUuidOfContainer(currentTab.containerUuid)
const currentReccord = store.getters.getTabCurrentRow({
containerUuid: currentTab.containerUuid
})
let recordId = -1
if (!isEmptyValue(currentReccord[currentTab.table_name + '_ID'])) recordId = currentReccord[currentTab.table_name + '_ID']
store.dispatch('flushPersistenceQueue', {
parentUuid: currentTab.parentUuid,
containerUuid: currentTab.containerUuid,
tabId: currentTab.internal_id,
tableName: currentTab.table_name,
recordUuid: undefined,
recordId: -1
recordUuid,
recordId
})
.then(response => {
const {
name,
query,
params
} = currentRoute
const { id } = response
let id = query.recordId
if (!isEmptyValue(response)) id = response.id
// refresh parent tab on document window
if (!currentTab.isParentTab) {
const { firstTabUuid } = currentTab
Expand Down

0 comments on commit 58f426f

Please sign in to comment.