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

Resolve "ILIAS-Schnittstelle: Kategorien werden nicht angelegt"

Closes #4443

Merge request studip/studip!3229
parent 40dc80ac
No related branches found
No related tags found
No related merge requests found
...@@ -451,7 +451,11 @@ class ConnectedIlias ...@@ -451,7 +451,11 @@ class ConnectedIlias
$this->soap_client->setCachingStatus(false); $this->soap_client->setCachingStatus(false);
$this->soap_client->clearCache(); $this->soap_client->clearCache();
if ($delete_user->isConnected() && $delete_user->id && $this->soap_client->lookupUser($delete_user->login)) { if ($delete_user->isConnected() && $delete_user->id && $this->soap_client->lookupUser($delete_user->login)) {
$deleted = $this->soap_client->deleteUser($delete_user->id); if (!empty($this->ilias_config['delete_ilias_users'])) {
$deleted = $this->soap_client->deleteUser($delete_user->id);
} else {
$deleted = true;
}
if ($deleted) { if ($deleted) {
$query = "DELETE FROM auth_extern WHERE studip_user_id = ? AND external_user_system_type = ?"; $query = "DELETE FROM auth_extern WHERE studip_user_id = ? AND external_user_system_type = ?";
$statement = DBManager::get()->prepare($query); $statement = DBManager::get()->prepare($query);
...@@ -486,7 +490,11 @@ class ConnectedIlias ...@@ -486,7 +490,11 @@ class ConnectedIlias
$this->soap_client->setCachingStatus(false); $this->soap_client->setCachingStatus(false);
$this->soap_client->clearCache(); $this->soap_client->clearCache();
$deleted = $this->soap_client->deleteObject($crs_id); if (!empty($this->ilias_config['delete_ilias_courses'])) {
$deleted = $this->soap_client->deleteObject($crs_id);
} else {
$deleted = true;
}
if ($deleted) { if ($deleted) {
IliasObjectConnections::DeleteAllConnections($course->id, $this->index); IliasObjectConnections::DeleteAllConnections($course->id, $this->index);
return true; return true;
......
...@@ -504,13 +504,10 @@ class IliasSoap extends StudipSoapClient ...@@ -504,13 +504,10 @@ 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\" obj_id=\"\" > <Object type=\"$type\" obj_id=\"\" offline=\"\" >
<Title> <Title>$title</Title>
$title <Description>$description</Description>
</Title> <ImportId></ImportId>
<Description>
$description
</Description>
</Object> </Object>
</Objects>"; </Objects>";
......
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