Skip to content

Commit

Permalink
CM-1023: bugfix for submit advisory and save draft as submitter (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
molund authored Oct 19, 2023
1 parent f73efc8 commit 1d9699a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ export default function AdvisoryForm({
label="Submit"
styling="bcgov-normal-blue btn"
onClick={() => {
if (validAdvisoryData(advisoryData, false, mode)) {
if (validAdvisoryData(advisoryData, linksRef, false, mode)) {
saveAdvisory("submit");
}
}}
Expand All @@ -1187,7 +1187,7 @@ export default function AdvisoryForm({
label="Save Draft"
styling="bcgov-normal-light btn"
onClick={() => {
if (validAdvisoryData(advisoryData, false, mode)) {
if (validAdvisoryData(advisoryData, linksRef, false, mode)) {
saveAdvisory("draft");
}
}}
Expand All @@ -1201,7 +1201,7 @@ export default function AdvisoryForm({
label="Submit"
styling="bcgov-normal-blue btn"
onClick={() => {
if (validAdvisoryData(advisoryData, false, mode)) {
if (validAdvisoryData(advisoryData, linksRef, false, mode)) {
updateAdvisory("submit");
}
}}
Expand All @@ -1211,7 +1211,7 @@ export default function AdvisoryForm({
label="Save Draft"
styling="bcgov-normal-light btn"
onClick={() => {
if (validAdvisoryData(advisoryData, false, mode)) {
if (validAdvisoryData(advisoryData, linksRef, false, mode)) {
updateAdvisory("draft");
}
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ module.exports = createCoreController(
delete version.updatedBy;
};

return sanitize.contentAPI.output(entities.results);
return this.sanitizeOutput(entities.results, ctx);
}
}
)
})
);

0 comments on commit 1d9699a

Please sign in to comment.