-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tools] delete_candidate CanID Fix #6805
Conversation
tools/delete_candidate.php
Outdated
@@ -150,7 +154,7 @@ function showHelp() | |||
* (second-level relations) should have actions on delete specified in the | |||
* database schema | |||
* | |||
* @param string $CandID Identifying the candidate | |||
* @param CanID $CandID Identifying the candidate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param CanID $CandID Identifying the candidate | |
* @param CandID $CandID Identifying the candidate |
7045719
to
495cd79
Compare
tools/delete_candidate.php
Outdated
@@ -18,11 +18,15 @@ | |||
* @license Loris license | |||
* @link https://www.github.com/aces/Loris-Trunk/ | |||
*/ | |||
|
|||
use LORIS\StudyEntities\Candidate\CandID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure this needs to go below the autoload require.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driusan For my personal knowledge, can you explain a bit why? I will take that into account for future changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be mistaken, it might not try autoloading until the class is referenced with "new", but how would the class be loaded if the autoloader hasn't been setup yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion, to clean up the header.
495cd79
to
4a83884
Compare
Co-authored-by: christinerogers <christinerogers@users.noreply.github.com>
Thanks @ridz1208 |
Fix in delete_candidate.php tool to use the CandID class. Resolves aces#6757
Fix in delete_candidate.php tool to use the CandID class. Resolves aces#6757
Fix in delete_candidate.php tool to use the CandID class. Resolves aces#6757
Fix in delete_candidate.php tool to use the CandID class.