Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-forum
Commits
312e5c49
Commit
312e5c49
authored
Sep 28, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed saving forum topic
parent
62e2da07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
new.tcl
www/new.tcl
+4
-8
No files found.
www/new.tcl
View file @
312e5c49
...
...
@@ -159,7 +159,7 @@ if {!$done && $topic_id == 0} {
set parent_id
""
set read_p
"f"
set scope
"
pm
"
set scope
"
group
"
set folder_id 0
set receive_updates
"major"
set topic_status_id
[
im_topic_status_id_open
]
...
...
@@ -428,25 +428,21 @@ incr ctr
# -------------- Scope -----------------------------
# Default is "group", if the user can do it...
if
{[
im_permission
$user
_id add_topic_group
]}
{
set
scope
"group"
}
if
{
""
eq
$scope
&&
[
im_permission
$user
_id add_topic_group
]}
{
set
scope
"group"
}
if
{
$topic
_type_id !=
[
im_topic_type_id_reply
]}
{
if
{
$object
_admin ||
$user
_id ==
$owner
_id
}
{
append table_body
"
<tr
$bgcolor
(
[
expr
{
$ctr
% 2
}]
)>
<td>
[
_ intranet-forum.Access_permissions
]
</td>
<td>
[
im_forum_scope_select
"scope"
$user
_id
$scope
]
</td>
<td>
[
im_forum_scope_select
"scope"
$user
_id
$scope
]
</td>
</tr>"
incr ctr
}
else
{
append table_body
"
<tr
$bgcolor
(
[
expr
{
$ctr
% 2
}]
)>
<td>
[
_ intranet-forum.Access_permissions
]
</td>
<td>
[
im_forum_scope_html
$scope
]
</td>
<td>
[
im_forum_scope_html
$scope
]
</td>
</tr>"
incr ctr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment