Commit f1f8ab97 authored by Frank Bergmann's avatar Frank Bergmann

- Don't show Gantt resources in a sub-project

parent a419c885
......@@ -2186,6 +2186,11 @@ ad_proc -public im_ganttproject_resource_component {
@param customer_id Id of customer's projects to show
@param user_name_link_opened List of users with details shown
} {
# Skip if this is a sub-project
set parent_id [db_string parent_id "select parent_id from im_projects where project_id = :project_id"]
if {"" ne $parent_id} { return "" }
set rowclass(0) "roweven"
set rowclass(1) "rowodd"
set sigma "Σ"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment