Skip to content

Commit

Permalink
IndividualAssessment: 36471 if mapping was succesfull cast new id to int
Browse files Browse the repository at this point in the history
  • Loading branch information
shecken committed Oct 16, 2023
1 parent b2db142 commit 6ba03cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function importRecord(
): void {
if ($a_entity == "iass") {
if ($new_id = $a_mapping->getMapping('Services/Container', 'objs', $a_rec['id'])) {
$newObj = ilObjectFactory::getInstanceByObjId($new_id, false);
$newObj = ilObjectFactory::getInstanceByObjId((int) $new_id, false);
} else {
$newObj = new ilObjIndividualAssessment();
$newObj->create();
Expand Down

0 comments on commit 6ba03cd

Please sign in to comment.