Skip to content

Commit

Permalink
Merge pull request #1761 from ProcessMaker/bugfix/FOUR-19806
Browse files Browse the repository at this point in the history
bugfix/FOUR-19806: Collection columns not selected in Edit Screens are deleted when Draft data is recovered in task using CollectionRecordControl
  • Loading branch information
ryancooley authored Oct 29, 2024
2 parents fd14fa4 + 18d73cb commit bd632ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/renderer/form-collection-record-control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script>
import VueFormRenderer from "../vue-form-renderer.vue";
import CollectionRecordsList from "../inspector/collection-records-list.vue";
import _ from 'lodash';
const globalObject = typeof window === "undefined" ? global : window;
Expand Down Expand Up @@ -184,7 +185,7 @@ export default {
if(this.taskDraft?.draft?.data == null || this.taskDraft.draft.data === '') {
this.localData = respData;
}else{
this.localData = this.taskDraft.draft.data;
this.localData = _.merge({}, respData, this.taskDraft.draft.data);
}
})
Expand Down

0 comments on commit bd632ad

Please sign in to comment.