Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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) Language: Javascript PR or issue 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 been successfully tested by at least one peer label Apr 11, 2024
@jeffersoncasimir
Copy link
Contributor

Works as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.0.0-bugs Issues that were raised during the release testing for 26.0.0 Language: Javascript PR or issue that update Javascript code Passed manual tests PR has been successfully tested 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