Skip to content

Commit

Permalink
[tools/script] fix projectID issue (#9069)
Browse files Browse the repository at this point in the history
Fix type error when running CouchDB_Import_Demographics.

Fixes #9124
  • Loading branch information
kongtiaowang authored Mar 13, 2024
1 parent 0e39fb2 commit 5552885
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/CouchDB_Import_Demographics.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ function _generateQuery()
// Latest Diagnosis by project
$projects = \Utility::getProjectList();
foreach ($projects as $projectID => $project) {
$projectAlias = \Project::getProjectFromID($projectID)->getAlias();
$projectAlias = \Project::getProjectFromID(
new \ProjectID(strval($projectID))
)->getAlias();
$latestProjDx = "latestDiagnosis_$projectAlias";

$fieldsInQuery .= ",
Expand Down

0 comments on commit 5552885

Please # to comment.