Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
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-timesheet2-tasks
Commits
9d183205
Commit
9d183205
authored
May 25, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- implemented im_sub_categories
parent
12457110
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
28 deletions
+4
-28
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+4
-28
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
9d183205
...
...
@@ -63,13 +63,7 @@ ad_proc -private im_timesheet_task_type_options { {-include_empty 1} } {
select category, category_id
from im_categories
where category_type = 'Intranet Project Type'
and category_id in (
select child_id
from im_category_hierarchy
where parent_id =
[
im_project_type_task
]
UNION
select
[
im_project_type_task
]
as child_id
)
and category_id in (
[
join
[
im_sub_categories
[
im_project_type_task
]]
","
]
)
"
]
if
{
$include
_empty
}
{
set options
[
linsert
$options
0
{
""
""
}]
}
return
$options
...
...
@@ -137,13 +131,7 @@ ad_proc -public im_timesheet_task_list_component {
if
{
""
==
$subproject
_status_id
}
{
set subproject_status_id 0
}
set subproject_sql
""
if
{
$subproject
_status_id
}
{
set subproject_sql
"and p.project_status_id in (
select :subproject_status_id as child_id
UNION
select child_id
from im_category_hierarchy
where parent_id = :subproject_status_id
)
\n
"
set subproject_sql
"and p.project_status_id in (
[
join
[
im_sub_categories
$subproject
_status_id
]
","
]
)"
}
...
...
@@ -272,23 +260,11 @@ ad_proc -public im_timesheet_task_list_component {
lappend criteria
$project
_restriction
if
{
$restrict
_to_status_id
}
{
lappend criteria
"t.task_status_id in (
select :restrict_to_status_id from dual
UNION
select child_id
from im_category_hierarchy
where parent_id = :restrict_to_status_id
)"
lappend criteria
"t.task_status_id in (
[
join
[
im_sub_categories
$restrict
_to_status_id
]
","
]
)"
}
if
{
$restrict
_to_type_id
}
{
lappend criteria
"t.task_type_id in (
select :restrict_to_type_id from dual
UNION
select child_id
from im_category_hierarchy
where parent_id = :restrict_to_type_id
)"
lappend criteria
"t.task_type_id in (
[
join
[
im_sub_categories
$restrict
_to_type_id
]
","
]
)"
}
set restriction_clause
[
join
$criteria
"
\n\t
and "
]
...
...
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