Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[new_profile] Site not selected when recruiting another candidate #9197

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

nicolasbrossard
Copy link
Contributor

@nicolasbrossard nicolasbrossard commented Apr 5, 2024

This PR ensures that if a user is associated to only one site and creates two candidates in a row, his/her site will be automatically selected on the new profile form when the form is first displayed and when he/she clicks on 'Recruit another candidate'. It also updates the module's test plan to cover this scenario.

Fixes #9146

@nicolasbrossard nicolasbrossard added Testing PR contains test plan or automated test code (or config files for Travis) javascript Pull requests that update Javascript code 26.0.0-bugs Issues that were raised during the release testing for 26.0.0 labels Apr 5, 2024
@jeffersoncasimir jeffersoncasimir self-assigned this Apr 11, 2024
Copy link
Contributor

@jeffersoncasimir jeffersoncasimir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a typo

// on whether the user clicked on 'Access Profile' or
// 'Recruit another candidate' respectively
window.location.href = result.value === true
? window.location.href = '/' + data.CandID
Copy link
Contributor

@jeffersoncasimir jeffersoncasimir Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
? window.location.href = '/' + data.CandID
? '/' + data.CandID

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffersoncasimir You're absolutely right! The funny thing is, the code works, but your version is cleaner/simpler. Ready for another review.

@jeffersoncasimir jeffersoncasimir added the Passed Manual Tests PR has undergone proper testing by at least one peer label Apr 11, 2024
@jeffersoncasimir
Copy link
Contributor

Works as expected!

@driusan driusan merged commit d3e7bf2 into aces:main Apr 11, 2024
28 checks passed
@ridz1208 ridz1208 added this to the 26.0.0 milestone Jun 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
26.0.0-bugs Issues that were raised during the release testing for 26.0.0 javascript Pull requests that update Javascript code Passed Manual Tests PR has undergone proper testing by at least one peer Testing PR contains test plan or automated test code (or config files for Travis)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[new_profile] Site drop-down should be automatically set
4 participants