Skip to content

Commit

Permalink
Object: Fix Too Long Title On Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Oct 1, 2024
1 parent 1f976a5 commit 9310081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ILIAS/ILIASObject/classes/class.ilObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -1577,8 +1577,10 @@ public function cloneObject(int $target_id, int $copy_id = 0, bool $omit_tree =
$this->obj_log->debug("isTreeCopyDisabled: " . $options->isTreeCopyDisabled());
$this->obj_log->debug("omit_tree: " . $omit_tree);
if (!$options->isTreeCopyDisabled() && !$omit_tree) {
$title = $this->appendCopyInfo($target_id, $copy_id);
$title_with_suffix = $this->appendCopyInfo($target_id, $copy_id);
$title = strlen($title_with_suffix) < self::TITLE_LENGTH ? $title_with_suffix : $title;
$this->obj_log->debug("title incl. copy info: " . $title);

}

/** @var ilObject $new_obj */
Expand Down

0 comments on commit 9310081

Please sign in to comment.