Skip to content

Commit

Permalink
42586: Assigning Taxonomy Nodes to terms removes Definitions from Ter…
Browse files Browse the repository at this point in the history
…ms-table
  • Loading branch information
tfamula committed Nov 7, 2024
1 parent 1f6914a commit 9340624
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ILIAS/Glossary/Term/class.ilGlossaryTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public function read(): void
$this->setImportId((string) $term_rec["import_id"]);
$this->setLanguage((string) $term_rec["language"]);
$this->setGlossaryId((int) $term_rec["glo_id"]);
$this->setShortText((string) $term_rec["short_text"]);
$this->setShortTextDirty((int) $term_rec["short_text_dirty"]);

$this->page_object = new ilGlossaryDefPage($this->getId());
}
Expand Down Expand Up @@ -232,8 +234,8 @@ public function create(bool $a_omit_page_creation = false): void
$ilDB->quote($this->getImportId(), "text") . ", " .
$ilDB->now() . ", " .
$ilDB->now() . ", " .
$ilDB->quote($this->getShortText()) . ", " .
$ilDB->quote($this->getShortTextDirty()) . ")");
$ilDB->quote($this->getShortText(), "text") . ", " .
$ilDB->quote($this->getShortTextDirty(), "integer") . ")");

if (!$a_omit_page_creation) {
$this->page_object = new ilGlossaryDefPage();
Expand Down

0 comments on commit 9340624

Please sign in to comment.