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
954e7ae5
Commit
954e7ae5
authored
Jan 26, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added "resolved" action
parent
e57ab7fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
action.tcl
www/action.tcl
+16
-1
No files found.
www/action.tcl
View file @
954e7ae5
...
...
@@ -29,6 +29,7 @@ set user_name [im_name_from_user_id [ad_get_user_id]]
# 30500, 'Close'
# 30510, 'Close &
;
notify'
# 30520, 'Duplicated'
# 30060, 'Resolved'
# 30590, 'Delete'
# 30599, 'Nuke'
...
...
@@ -130,7 +131,21 @@ switch $action_id {
# Redirect to this page, but with Action=Close
(
30500
)
to close the escalated tickets
ad_returnredirect
[
export_vars -base
"/intranet-helpdesk/action"
{{
action_id 30500
}
{
tid
$escalated
_tickets
}
return_url
}]
}
30560
{
# Resolved
foreach ticket_id
$tid
{
im_ticket_permissions
$user
_id
$ticket
_id view read write admin
if
{
!$write
}
{
ad_return_complaint 1
$action
_forbidden_msg
}
db_dml resolved_ticket
"
update im_tickets set
ticket_status_id =
[
im_ticket_status_resolved
]
,
ticket_done_date = now()
where ticket_id = :ticket_id
"
im_ticket::add_reply -ticket_id
$ticket
_id -subject
\
[
lang::message::lookup
""
intranet-helpdesk.Deleted_by_user
"Resolved by %user_name%"
]
}
}
30590
{
# Delete
foreach ticket_id
$tid
{
...
...
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