Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
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-rest
Commits
a7b50ef9
Commit
a7b50ef9
authored
Feb 06, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added default value for effort_driven_type_id
parent
85db0f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
project-task-tree.json.tcl
www/data-source/project-task-tree.json.tcl
+7
-0
No files found.
www/data-source/project-task-tree.json.tcl
View file @
a7b50ef9
...
...
@@ -31,6 +31,10 @@ if {!$read} {
ad_script_abort
}
# 9722 = 'Fixed Work' is the default effort_driven_type
set
default_effort_driven_type_id
[
parameter::get_from_package_key -package_key
"intranet-ganttproject"
-parameter
"DefaultEffortDrivenTypeId"
-default
"9722"
]
# --------------------------------------------
# Task dependencies: Collect before the main loop
...
...
@@ -267,6 +271,9 @@ template::multirow foreach task_multirow {
if
{[
im_category_is_a
$project
_type_id
[
im_project_type_gantt
]]}
{
set type
"project"
}
if
{
"t"
eq
$milestone
_p
}
{
set type
"milestone"
}
# ToDo: Deal with empty type
# Fixed Work, fixed duration or Fixed units?
if
{
""
eq
$effort
_driven_type_id
}
{
set effort_driven_type_id
$default
_effort_driven_type_id
}
append task_json
"
${indent}
\{
${indent}
\t
id:
$project
_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