Skip to content

Commit

Permalink
42589: If Taxonomy is shown in Presentation View an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
tfamula committed Nov 7, 2024
1 parent e0dba20 commit 9c12eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/ILIAS/Glossary/Export/class.ilGlossaryDataSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ public function importRecord(
$newObj->setDescription($a_rec["Description"]);
$newObj->setVirtualMode($a_rec["Virtual"]);
$newObj->setPresentationMode($a_rec["PresMode"]);
$newObj->setSnippetLength($a_rec["SnippetLength"]);
$newObj->setActiveGlossaryMenu($a_rec["GloMenuActive"]);
$newObj->setShowTaxonomy($a_rec["ShowTax"]);
$newObj->setSnippetLength((int) ($a_rec["SnippetLength"] ?? 0));
$newObj->setActiveGlossaryMenu((bool) ($a_rec["GloMenuActive"] ?? false));
$newObj->setShowTaxonomy((bool) ($a_rec["ShowTax"] ?? false));
$newObj->setActiveFlashcards((bool) ($a_rec["FlashActive"] ?? false));
$newObj->setFlashcardsMode($a_rec["FlashMode"] ?? "");
if ($this->getCurrentInstallationId() > 0) {
Expand Down
4 changes: 2 additions & 2 deletions components/ILIAS/Glossary/classes/class.ilObjGlossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ public function setSnippetLength(int $a_val): void
$this->snippet_length = $a_val;
}

public function getSnippetLength(): ?int
public function getSnippetLength(): int
{
return ($this->snippet_length > 0)
? $this->snippet_length
: null;
: 200;
}

public function setOnline(bool $a_online): void
Expand Down

0 comments on commit 9c12eba

Please sign in to comment.