Skip to content

Commit

Permalink
Update metadata with project IDNO and TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed Apr 24, 2024
1 parent 0f311f9 commit 88f32ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/models/Editor_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ function get_row($sid)
$survey=$this->decode_encoded_fields($survey);
}

if (isset($survey['metadata'])){
if (isset($survey['idno'])){
$survey['metadata']['idno']=$survey['idno'];
}
if (isset($survey['type'])){
$survey['metadata']['type']=$survey['type'];
}
}

return $survey;
}

Expand Down

0 comments on commit 88f32ee

Please sign in to comment.