Commit 820a990a authored by Frank Bergmann's avatar Frank Bergmann

-- included samity check for project_id = task_id

parent 365d2bb0
......@@ -60,6 +60,12 @@ set view_hours_all_p [im_permission $current_user_id "view_hours_all"]
if {!$view_hours_all_p} { set user_id $current_user_id }
# If project_id and task_id are set and equal, exclude task_id from sql
if {0 != $task_id && "" != $task_id && 0 != $project_id && "" != $project_id && $project_id == $task_id} {
set task_id 0
}
# ------------------------------------------------------------
# Constants
......
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