Skip to content
Snippets Groups Projects
Commit 7c23cbbf authored by Arne Schröder, M. A.'s avatar Arne Schröder, M. A. Committed by André Noack
Browse files

Resolve "ILIAS-Schnittstelle: neues Feld matriculation_number wird nicht berücksichtigt"

Closes #4446

Merge request studip/studip!3232
parent 6ed13d51
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<? endif ?> <? endif ?>
</label> </label>
<label> <label>
<span><?= _('Datenfeld (Name) mit Matrikelnummer (wenn leer, wird keine Matrikelnummer übergeben)') ?></span> <span><?= _('Datenfeld (Name) mit Matrikelnummer (nur ausfüllen, wenn die Matrikelnummer in einem Datenfeld gespeichert wird)') ?></span>
<input type="text" name="ilias_matriculation" size="50" maxlength="255" value="<?= htmlReady($ilias_config['matriculation']) ?>"> <input type="text" name="ilias_matriculation" size="50" maxlength="255" value="<?= htmlReady($ilias_config['matriculation']) ?>">
</label> </label>
<? if (count($ilias_datafields)) : ?> <? if (count($ilias_datafields)) : ?>
......
...@@ -111,7 +111,7 @@ class IliasUser ...@@ -111,7 +111,7 @@ class IliasUser
function getStudipUserData() function getStudipUserData()
{ {
$query = "SELECT username, password, title_front, title_rear, Vorname, $query = "SELECT username, password, title_front, title_rear, Vorname,
Nachname, Email, privatnr, privadr, geschlecht Nachname, Email, privatnr, privadr, geschlecht, matriculation_number
FROM auth_user_md5 FROM auth_user_md5
LEFT JOIN user_info USING (user_id) LEFT JOIN user_info USING (user_id)
WHERE user_id = ?"; WHERE user_id = ?";
...@@ -146,6 +146,8 @@ class IliasUser ...@@ -146,6 +146,8 @@ class IliasUser
$this->matriculation = $entry->getDisplayValue(); $this->matriculation = $entry->getDisplayValue();
} }
} }
} else {
$this->matriculation = $data['matriculation_number'];
} }
if ($this->title_front != '') { if ($this->title_front != '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment