Skip to content

Commit

Permalink
Merge branch 'release-2024-fall' of github.com:ProcessMaker/screen-bu…
Browse files Browse the repository at this point in the history
…ilder into bugfix/FOUR-20076
  • Loading branch information
CarliPinell committed Nov 12, 2024
2 parents 6e31fc5 + b696a3c commit 4fa719d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/renderer/form-collection-record-control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export default {
screenType: "",
hasMustache: false,
flagDraft: {},
taskDraft: {}
taskDraft: {},
enableDraft: true
};
},
computed: {
Expand Down Expand Up @@ -182,12 +183,13 @@ export default {
this.loadScreen(this.screenCollectionId);
//This section validates if Collection has draft data
if(this.taskDraft?.draft?.data == null || this.taskDraft.draft.data === '') {
if (this.taskDraft?.draft?.data == null || this.taskDraft.draft.data === '' || !this.enableDraft)
{
this.localData = respData;
}else{
this.localData = _.merge({}, respData, this.taskDraft.draft.data);
}
})
.catch(() => {
this.localData = {};
Expand All @@ -214,6 +216,7 @@ export default {
},
record(record) {
this.hasMustache = false;
this.enableDraft = false;
if (record && !isNaN(record) && record > 0 && this.collection.collectionId) {
this.selRecordId = record;
this.loadRecordCollection(this.collection.collectionId, record, this.selDisplayMode);
Expand Down

0 comments on commit 4fa719d

Please sign in to comment.