Skip to content

Commit

Permalink
fix subprojectid
Browse files Browse the repository at this point in the history
  • Loading branch information
xlecours committed Nov 14, 2023
1 parent 26fd0e6 commit 0914c52
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/fix_timepoint_date_problems.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,13 +679,7 @@ function diagnose($sessionID, $dateType = null, $newDate = null)
$subProjectID = $timePoint->getSubprojectID();

// define the date of birth to use (dob or edc)
if (($dateType=='dob' && $subProjectID==1)
|| ($dateType=='edc' && $subProjectID==2)
) {
$dateBirth = $newDate;
} else {
$dateBirth = $timePoint->getEffectiveDateOfBirth();
}
$dateBirth = $timePoint->getEffectiveDateOfBirth();

// check if the timepoint is started before attempting to make changes to it
if ($timePoint->getCurrentStage() == 'Not Started'
Expand Down

0 comments on commit 0914c52

Please # to comment.