Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-gantt-editor
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-gantt-editor
Commits
4b87d760
Commit
4b87d760
authored
May 25, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue showing the GanttEditor for a sub-project or task
parent
6e9e7977
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
gantt-editor.adp
lib/gantt-editor.adp
+1
-1
gantt-editor.tcl
lib/gantt-editor.tcl
+3
-0
No files found.
lib/gantt-editor.adp
View file @
4b87d760
...
...
@@ -410,7 +410,7 @@ Ext.onReady(function() {
</div>
</if>
<else>
<if "
0" eq @read_p
@>
<if "
" ne @main_project_parent_id
@>
Project #@project_id@ is a sub-project, so we can't show a Gantt Editor for it.
</if>
</else>
...
...
lib/gantt-editor.tcl
View file @
4b87d760
...
...
@@ -17,6 +17,9 @@
set
page_url
[
im_url_with_query
]
set
current_user_id
[
auth::require_login
]
set
main_project_id
$project
_id
;
# project_id may be overwritten by SQLs below
set
main_project_parent_id
[
db_string mppi
"select parent_id from im_projects where project_id = :main_project_id"
-default
""
]
if
{
""
ne
$main
_project_parent_id
}
{
set main_project_id
""
}
# Determine the permission of the user
im_project_permissions
$current
_user_id
$main
_project_id view_p read_p write_p admin_p
...
...
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