Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
f8879537
Commit
f8879537
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1068: fix RS if a wiki is (probably) imported and has a forum
parent
0d6e2fa5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/modules/wiki/WikiMainController.java
+5
-4
5 additions, 4 deletions
src/main/java/org/olat/modules/wiki/WikiMainController.java
with
5 additions
and
4 deletions
src/main/java/org/olat/modules/wiki/WikiMainController.java
+
5
−
4
View file @
f8879537
...
@@ -653,17 +653,18 @@ public class WikiMainController extends BasicController implements CloneableCont
...
@@ -653,17 +653,18 @@ public class WikiMainController extends BasicController implements CloneableCont
* tabbed pane change to discussion tab
* tabbed pane change to discussion tab
**********************************************************************/
**********************************************************************/
Forum
forum
=
null
;
Forum
forum
=
null
;
if
(
page
.
getForumKey
()
==
0
)
{
if
(
page
.
getForumKey
()
>
0
)
{
forum
=
ForumManager
.
getInstance
().
loadForum
(
Long
.
valueOf
(
page
.
getForumKey
()));
}
if
(
forum
==
null
)
{
forum
=
ForumManager
.
getInstance
().
addAForum
();
forum
=
ForumManager
.
getInstance
().
addAForum
();
page
.
setForumKey
(
forum
.
getKey
().
longValue
());
page
.
setForumKey
(
forum
.
getKey
().
longValue
());
WikiManager
.
getInstance
().
updateWikiPageProperties
(
ores
,
page
);
WikiManager
.
getInstance
().
updateWikiPageProperties
(
ores
,
page
);
}
else
{
forum
=
ForumManager
.
getInstance
().
loadForum
(
Long
.
valueOf
(
page
.
getForumKey
()));
}
}
// TODO enhance forum callback with subscription stuff
// TODO enhance forum callback with subscription stuff
boolean
isModerator
=
securityCallback
.
mayModerateForum
();
boolean
isModerator
=
securityCallback
.
mayModerateForum
();
ForumCallback
forumCallback
=
new
WikiForumCallback
(
ureq
.
getUserSession
().
getRoles
().
isGuestOnly
(),
isModerator
);
ForumCallback
forumCallback
=
new
WikiForumCallback
(
ureq
.
getUserSession
().
getRoles
().
isGuestOnly
(),
isModerator
);
ContextEntry
ce
=
BusinessControlFactory
.
getInstance
().
createContextEntry
(
forum
);
ContextEntry
ce
=
BusinessControlFactory
.
getInstance
().
createContextEntry
(
forum
);
WindowControl
bwControl
=
BusinessControlFactory
.
getInstance
().
createBusinessWindowControl
(
ce
,
getWindowControl
());
WindowControl
bwControl
=
BusinessControlFactory
.
getInstance
().
createBusinessWindowControl
(
ce
,
getWindowControl
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment