Skip to content

Commit

Permalink
Merge pull request #5489 from bcgov/dev-MD-3622
Browse files Browse the repository at this point in the history
3622 - fix handling of bulk division updates
  • Loading branch information
milosdes authored Dec 20, 2024
2 parents 1e4f1de + 3f1b858 commit 1aa20ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const MCFPersonal = ({
&& personalAttributes?.trackingid === ""
&& personalAttributes?.personaltag === ""
&& personalAttributes?.volume === ""
&& divisionModalTagValue === -1
);
} else {
setDisableSave(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1977,6 +1977,20 @@ export const RecordsLog = ({
);
}

if(isMinistryCoordinator
&& selectedRecords.length > 1
&& divisionModalTagValue !== -1
)
for (let selectedRecord of selectedRecords) {
updateDivisionForRecords.push(
{
recordid: selectedRecord.recordid,
documentmasterid: selectedRecord.documentmasterid,
filepath: selectedRecord.s3uripath
}
);
}

if(currentEditRecord || selectedRecords.length > 1) {
if(updateRecords.length > 0 && !comparePersonalAttributes(newPersonalAttributes, curPersonalAttributes)) {
dispatch(
Expand Down Expand Up @@ -2682,6 +2696,7 @@ export const RecordsLog = ({
trackingid: "",
personaltag: ""
});
setDivisionModalTagValue(-1);
setEditTagModalOpen(true);
}}
disabled={lockRecords || isBulkEditDisabled()}
Expand Down

0 comments on commit 1aa20ae

Please sign in to comment.