Skip to content

Commit

Permalink
Merge pull request #1026 from unikent/bugfix/sits-import-wrong-course…
Browse files Browse the repository at this point in the history
…-ids

Get the number part of the progID
  • Loading branch information
cfc7-unikent authored Oct 7, 2024
2 parents 46b2dcc + 33d35b2 commit 9abbd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/tasks/sitsimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function getProgramme($course, $level, $processYears = null)
}

$model = $level === "ug" ? "UG_Programme" : "PG_Programme";
$courseID = substr($course->progID, 0, strlen((string) $course->progID) - 3);
$courseID = filter_var($course->progID, FILTER_SANITIZE_NUMBER_INT);

return $model::where(
"instance_id",
Expand Down

0 comments on commit 9abbd9a

Please sign in to comment.