Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
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-helpdesk
Commits
d934acbf
Commit
d934acbf
authored
Sep 29, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added a "Associated Objects" portlet to TicketViewPage
parent
1c71384a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
associate-2.tcl
www/associate-2.tcl
+37
-2
No files found.
www/associate-2.tcl
View file @
d934acbf
...
@@ -63,8 +63,7 @@ switch $target_object_type {
...
@@ -63,8 +63,7 @@ switch $target_object_type {
select count(*)
select count(*)
from im_release_items i,
from im_release_items i,
acs_rels r
acs_rels r
where
where i.rel_id = r.rel_id
i.rel_id = r.rel_id
and r.object_id_one = :release_project_id
and r.object_id_one = :release_project_id
and r.object_id_two = :pid
and r.object_id_two = :pid
"
]
"
]
...
@@ -104,6 +103,42 @@ switch $target_object_type {
...
@@ -104,6 +103,42 @@ switch $target_object_type {
}
}
}
}
ticket
{
ticket
{
# release_project_id contains the project to associate
foreach pid
$tid
{
set exists_p
[
db_string count
"
select count(*)
from im_ticket_ticket_rels ttr,
acs_rels r
where ttr.rel_id = r.rel_id
and r.object_id_one = :release_project_id
and r.object_id_two = :pid
"
]
if
{
!$exists_p
}
{
set max_sort_order
[
db_string max_sort_order
"
select coalesce(max(i.sort_order),0)
from im_ticket_ticket_rels ttr,
acs_rels r
where ttr.rel_id = r.rel_id
and r.object_id_one = :release_project_id
"
-default 0
]
db_string add_user
"
select im_release_item__new (
null,
'im_ticket_ticket_rel',
:conf_item_id,
:pid,
null,
:current_user_id,
'
[
ad_conn peeraddr
]
',
[
expr
$max
_sort_order + 10
]
)
"
}
}
}
}
default
{
default
{
ad_return_complaint 1
[
lang::message::lookup
""
intranet-helpdesk.Unknown_target_object_type
"Unknown object type %target_object_type%"
]
ad_return_complaint 1
[
lang::message::lookup
""
intranet-helpdesk.Unknown_target_object_type
"Unknown object type %target_object_type%"
]
...
...
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