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
f20e0c50
Commit
f20e0c50
authored
May 25, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Including the internal_sla in sla_options in order to handle ideas
parent
ac075842
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
intranet-helpdesk-procs.tcl
tcl/intranet-helpdesk-procs.tcl
+6
-3
new.tcl
www/new.tcl
+1
-1
No files found.
tcl/intranet-helpdesk-procs.tcl
View file @
f20e0c50
...
...
@@ -1011,6 +1011,7 @@ ad_proc -public im_helpdesk_ticket_sla_options {
{
-customer_id 0
}
{
-include_empty_p 1
}
{
-include_create_sla_p 0
}
{
-include_internal_sla_p 0
}
}
{
Returns a list of SLA tuples suitable for ad_form
}
{
...
...
@@ -1058,9 +1059,11 @@ ad_proc -public im_helpdesk_ticket_sla_options {
#
"Internal SLA"
Logic - Remove the Internal SLA from the list
# if there is an SLA specific to the user.
set count
[
db_string sla_count
"select count(*) from (
$sql
) t"
]
if
{
$count
> 1
}
{
append sql
"
\t\t
and p.project_nr != 'internal_sla'"
if
{
!$include_internal_sla_p
}
{
set count
[
db_string sla_count
"select count(*) from (
$sql
) t"
]
if
{
$count
> 1
}
{
append sql
"
\t\t
and p.project_nr != 'internal_sla'"
}
}
append sql
"
\t\t
order by sla_name"
...
...
www/new.tcl
View file @
f20e0c50
...
...
@@ -497,7 +497,7 @@ if {"new" == $ticket_customer_contact_id && $user_can_create_new_customer_contac
# ------------------------------------------------------------------
if
{([
info
exists ticket_customer_id
]
&&
$ticket
_customer_id ne
""
)}
{
set customer_sla_options
[
im_helpdesk_ticket_sla_options -customer_id
$ticket
_customer_id -include_create_sla_p
$add
_projects_p
]
set customer_sla_options
[
im_helpdesk_ticket_sla_options -customer_id
$ticket
_customer_id -include_create_sla_p
$add
_projects_p
-include_internal_sla_p 1
]
set customer_contact_options
[
db_list_of_lists customer_contact_options
"
select im_name_from_user_id(u.user_id) as name,
u.user_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