Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KS-4672 | Fix bug Can not show forum in renamed Space #173

Open
wants to merge 5 commits into
base: stable/2.2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

{anchor:id=KSref.Extend_actions_over_a_wiki_page_from_external_jars.Overview}

The toolbar in Wiki is built basing on the UI Extension Framework, so you can add your own actions packaged in external jars to it. After reading this section, you will know how to extend actions over a wiki page from external jars.
The toolbar in Wiki is built basing on the UI Extensions framework as described in [Extend eXo applications|../../../developer-guide/html/DEV.ExtendeXoApplications.html], so you can add your own actions packaged in external jars to it. After reading this section, you will know how to extend actions over a wiki page from external jars.
{anchor:id=KSref.Extend_actions_over_a_wiki_page_from_external_jars.How_to_add_action_extension_to_the_Wiki_toolbar}

{docbook}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public class Utils implements ForumNodeTypes {
public static final int VOTE_RATING = 8;

public static final int HIDDEN = 9;

public static final int CHANGE_ID = 10;

public static final String SPACE = " ".intern();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,10 +1283,19 @@ public void modifyForum(Forum forum, int type) throws Exception {
forumNode.setProperty(EXO_IS_LOCK, forum.getIsLock());
break;
}
case Utils.CHANGE_ID: {
forumNode.setProperty(EXO_ID, forum.getId());
break;
}
default:
break;
}
if (forumNode.isNew()) {

if (type == Utils.CHANGE_ID) {
forumNode.save();
forumNode.getSession().move(forumNode.getPath(), forumNode.getParent().getPath() + "/" + forum.getId());
forumNode.getSession().save();
} else if (forumNode.isNew()) {
forumNode.getSession().save();
} else {
forumNode.save();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<thead>
<tr>
<th style="width:40px"></th>
<th>
<th style="width:100%;">
<div onclick="<%=uicomponent.event("SetOrderBy", Utils.EXO_NAME);%>">
<div class="DownArrow1Icon" style="cursor:pointer">
<%=_ctx.appRes("UIPageListPostByUser.label.PostName");%>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.