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

[Candidate] Fix wrong comments to avoid confusion in future #8791

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions php/libraries/Candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource,
);
}

// Add day as first of the month if Y-m dob format
// Add day as mid of the month if Y-m dob format
// This allows insert into sql candidate table
if ($dobFormat === '!Y-m') {
$edc .= '-15';
Expand All @@ -316,7 +316,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource,
);
}

// Add day as first of the month if Y-m dob format
// Add day as mid of the month if Y-m dob format
// This allows insert into sql candidate table
if ($dobFormat === '!Y-m') {
$dateOfBirth .= '-15';
Expand Down