Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Jan 24, 2025
2 parents 42b2ed3 + e698fe1 commit a6ee536
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tine20/Courses/Import/DivisCourses.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,17 @@ protected function _processStudents(): void
$account->accountFirstName = $raw[2];
$account->accountLastName = $raw[1];
$applyTwig = true;

if (null === $cfg) {
$cfg = Courses_Controller_Course::getInstance()->_getNewUserConfig($course);
$sambaCfg = $cfg['samba'];
$sambaSAM = $account->sambaSAM;
$sambaSAM['homePath'] = $sambaCfg['homePath'] ?: '';
$sambaSAM['homeDrive'] = $sambaCfg['homeDrive'] ?: '';
$sambaSAM['logonScript'] = $sambaCfg['logonScript'] ?: '';
$sambaSAM['profilePath'] = $sambaCfg['profilePath'] ?: '';
$account->sambaSAM = $sambaSAM;
}
}

if ($applyTwig) {
Expand Down

0 comments on commit a6ee536

Please sign in to comment.