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
c57b83ab
Commit
c57b83ab
authored
Jun 18, 2018
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added im_timesheet_task_options
parent
7b9431b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+21
-0
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
c57b83ab
...
...
@@ -144,6 +144,27 @@ ad_proc -private im_timesheet_task_status_options { {-include_empty 1} } {
ad_proc -private im_timesheet_task_options
{
{
-include_empty 1
}
{
-max_depth 2
}
-main_project_id
}
{
set options
[
db_list_of_lists task_type_options
"
select p.project_name, p.project_id
from im_projects main_p,
im_projects p
where main_p.project_id = :main_project_id and
p.parent_id is not null and -- exclude the main_project
p.tree_sortkey between main_p.tree_sortkey and tree_right(main_p.tree_sortkey) and
tree_level(p.tree_sortkey) <= :max_depth
order by p.sort_order
"
]
if
{
$include
_empty
}
{
set options
[
linsert
$options
0
{
""
""
}]
}
return
$options
}
# ----------------------------------------------------------------------
# Task List Page Component
# ---------------------------------------------------------------------
...
...
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