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
e0ac10c8
Commit
e0ac10c8
authored
Apr 02, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Hard-coded behavior of project_id=0 to return an empty tree
parent
02a919db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
project-task-tree.json.tcl
www/data-source/project-task-tree.json.tcl
+10
-0
No files found.
www/data-source/project-task-tree.json.tcl
View file @
e0ac10c8
...
...
@@ -21,6 +21,16 @@ set root_project_id $project_id
if
{
""
ne
$node
&&
[
string
is integer
$node
]}
{
set root_project_id
$node
}
ns_log Notice
"project-task-tree.json: node=
$node
, main_project_id=
$main
_project_id, root_project_id=
$root
_project_id, query_hash_pairs=
$query
_hash_pairs"
# --------------------------------------------
# Return an empty tree for project_id == 0 to avoid errors
#
if
{
0 eq
$project
_id
}
{
set task_json
"
\]
"
ad_return_template
return
}
# --------------------------------------------
# Security & Permissions
#
...
...
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