Skip to content

Commit

Permalink
Merge pull request #1772 from ProcessMaker/bugfix/FOUR-20076
Browse files Browse the repository at this point in the history
Bugfix/FOUR-20076: Properties are not cleaned when `Source of Record List` field is changed from Collection to variable
  • Loading branch information
ryancooley authored Nov 12, 2024
2 parents b696a3c + 4fa719d commit 48e7c8a
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/components/renderer/form-record-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,20 +431,22 @@ export default {
}
// Adds radio buttons or checkbox to the table depending selected option
if (['single-field', 'single-record'].includes(this.source?.dataSelectionOptions)) {
fields.unshift({
key: 'radio',
label: '',
sortable: false,
});
}
if (this.source?.dataSelectionOptions === 'multiple-records') {
fields.unshift({
key: 'checkbox',
label: '',
sortable: false
});
if(this.source?.sourceOptions === "Collection") {
if (['single-field', 'single-record'].includes(this.source?.dataSelectionOptions)) {
fields.unshift({
key: 'radio',
label: '',
sortable: false,
});
}
if (this.source?.dataSelectionOptions === 'multiple-records') {
fields.unshift({
key: 'checkbox',
label: '',
sortable: false
});
}
}
return fields;
Expand Down

0 comments on commit 48e7c8a

Please sign in to comment.