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
1721a9ac
Commit
1721a9ac
authored
Jun 03, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed a bug that restricted the number of potential asignees to administraotrs
(object_id_one = :user_id)...
parent
47bbd9f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
intranet-forum-procs.tcl
tcl/intranet-forum-procs.tcl
+10
-3
No files found.
tcl/intranet-forum-procs.tcl
View file @
1721a9ac
...
@@ -162,11 +162,18 @@ ad_proc -public im_forum_potential_asignees {user_id object_id} {
...
@@ -162,11 +162,18 @@ ad_proc -public im_forum_potential_asignees {user_id object_id} {
set admins
[
db_list get_admins
"select member_id from group_distinct_member_map where group_id = :admin_group_id"
]
set admins
[
db_list get_admins
"select member_id from group_distinct_member_map where group_id = :admin_group_id"
]
set object_admins
[
im_biz_object_admin_ids
$object
_id
]
set object_admins
[
im_biz_object_admin_ids
$object
_id
]
# Avoid empty select list: Add the system admins to the
# list if the list was empty
if
{
!
[
llength
$object
_admins
]}
{
set object_admins
$admins
}
if
{
!
[
llength
$object
_admins
]}
{
set object_admins
$admins
}
set object_admins_commalist
[
join
$object
_admins
","
]
set object_members
[
im_biz_object_admin_ids
$object
_id
]
set object_members
[
im_biz_object_admin_ids
$object
_id
]
# Avoid empty select list: Add the system admins to the
# list if the list was empty
if
{
!
[
llength
$object
_members
]}
{
set object_members
$admins
}
if
{
!
[
llength
$object
_members
]}
{
set object_members
$admins
}
# Convert into forma suitable for SQL select
set object_admins_commalist
[
join
$object
_admins
","
]
set object_members_commalist
[
join
$object
_members
","
]
set object_members_commalist
[
join
$object
_members
","
]
...
@@ -214,7 +221,7 @@ from
...
@@ -214,7 +221,7 @@ from
users u
users u
where
where
r.object_id_one = :object_id
r.object_id_one = :object_id
and r.object_id_
one
= u.user_id
and r.object_id_
two
= u.user_id
and m.member_id = u.user_id
and m.member_id = u.user_id
and m.group_id = :customer_group_id
and m.group_id = :customer_group_id
)"
)"
...
@@ -231,7 +238,7 @@ from
...
@@ -231,7 +238,7 @@ from
users u
users u
where
where
r.object_id_one = :object_id
r.object_id_one = :object_id
and r.object_id_
one
= u.user_id
and r.object_id_
two
= u.user_id
and m.member_id = u.user_id
and m.member_id = u.user_id
and m.group_id = :customer_group_id
and m.group_id = :customer_group_id
)"
)"
...
...
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