Skip to content
Snippets Groups Projects
Commit e7f1909c authored by André Noack's avatar André Noack Committed by Jan-Hendrik Willms
Browse files

Resolve #3765 "Ilias Schnittstelle: Probleme beim Anlegen der Nutzer Kategorie mit Ilias 8"

Closes #3765

Merge request studip/studip!2640
parent 00240896
No related branches found
No related tags found
No related merge requests found
...@@ -184,9 +184,14 @@ class MyIliasAccountsController extends AuthenticatedController ...@@ -184,9 +184,14 @@ class MyIliasAccountsController extends AuthenticatedController
'<a href="'.$this->ilias->getAbsolutePath().'">'.htmlReady($this->ilias->getName()).'</a>' '<a href="'.$this->ilias->getAbsolutePath().'">'.htmlReady($this->ilias->getName()).'</a>'
)); ));
} elseif (!$session_id) { } elseif (!$session_id) {
PageLayout::postError(sprintf(_('Automatischer Login für %s-Installation (Nutzername %s) fehlgeschlagen.'), PageLayout::postError(
sprintf(
_('Automatischer Login für %s-Installation (Nutzername %s) fehlgeschlagen.'),
htmlReady($this->ilias->getName()), htmlReady($this->ilias->getName()),
htmlReady($this->ilias->user->getUsername()))); htmlReady($this->ilias->user->getUsername())
),
$this->ilias->getError()
);
} elseif (($target == 'new') AND ! $module_id) { } elseif (($target == 'new') AND ! $module_id) {
PageLayout::postError(sprintf(_('Keine Kategorie zum Anlegen neuer Lernobjekte in der %s-Installation vorhanden.'), PageLayout::postError(sprintf(_('Keine Kategorie zum Anlegen neuer Lernobjekte in der %s-Installation vorhanden.'),
htmlReady($this->ilias->getName()))); htmlReady($this->ilias->getName())));
......
...@@ -503,7 +503,7 @@ class ConnectedIlias ...@@ -503,7 +503,7 @@ class ConnectedIlias
*/ */
public function newUserCategory() public function newUserCategory()
{ {
if (!$this->user->studip_login) { if (!$this->user->isConnected()) {
return false; return false;
} }
$this->soap_client->setCachingStatus(false); $this->soap_client->setCachingStatus(false);
......
...@@ -727,7 +727,7 @@ class IliasSoap extends StudipSoapClient ...@@ -727,7 +727,7 @@ class IliasSoap extends StudipSoapClient
$xml = "<!DOCTYPE Objects SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_object_0_1.dtd\"> $xml = "<!DOCTYPE Objects SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_object_0_1.dtd\">
<Objects> <Objects>
<Object type=\"$type\"> <Object type=\"$type\" obj_id=\"\">
<Title> <Title>
$title $title
</Title> </Title>
...@@ -768,7 +768,7 @@ class IliasSoap extends StudipSoapClient ...@@ -768,7 +768,7 @@ class IliasSoap extends StudipSoapClient
$xml = "<!DOCTYPE Objects SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_object_0_1.dtd\"> $xml = "<!DOCTYPE Objects SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_object_0_1.dtd\">
<Objects> <Objects>
<Object type=\"$type\"> <Object type=\"$type\" obj_id=\"\">
<Title> <Title>
$title $title
</Title> </Title>
...@@ -1652,7 +1652,8 @@ class IliasSoap extends StudipSoapClient ...@@ -1652,7 +1652,8 @@ class IliasSoap extends StudipSoapClient
{ {
$param = [ $param = [
'sid' => $this->getSID(), 'sid' => $this->getSID(),
'reference_id' => $id 'reference_id' => $id,
'user_id' => 0
]; ];
$result = $this->call('getObjectByReference', $param); $result = $this->call('getObjectByReference', $param);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment