Skip to content

Commit

Permalink
fixed bug #2099: Usability Improvement: Clicking the more button in b…
Browse files Browse the repository at this point in the history
…logs opens the editor
  • Loading branch information
alex40724 committed May 20, 2022
1 parent c56c5e4 commit 0b9be89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/Blog/classes/class.ilObjBlogGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,7 @@ public function renderList(array $items, $a_cmd = "preview", $a_link_template =
} else {
$preview = $this->buildExportLink($a_link_template, "posting", $item["id"]);
}
$more_link = $preview;

// actions
$posting_edit = $this->mayEditPosting($item["id"], $item["author"]);
Expand Down Expand Up @@ -1513,6 +1514,7 @@ public function renderList(array $items, $a_cmd = "preview", $a_link_template =
"edit",
$ilCtrl->getLinkTargetByClass("ilblogpostinggui", "edit")
);
$more_link = $ilCtrl->getLinkTargetByClass("ilblogpostinggui", "edit");

// #11858
if ($is_active) {
Expand Down Expand Up @@ -1630,7 +1632,7 @@ public function renderList(array $items, $a_cmd = "preview", $a_link_template =

if ($snippet) {
$wtpl->setCurrentBlock("more");
$wtpl->setVariable("URL_MORE", $preview);
$wtpl->setVariable("URL_MORE", $more_link);
$wtpl->setVariable("TEXT_MORE", $lng->txt("blog_list_more"));
$wtpl->parseCurrentBlock();
}
Expand Down

0 comments on commit 0b9be89

Please sign in to comment.