Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
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
1
Merge Requests
1
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-timesheet2
Commits
b83a8f16
Commit
b83a8f16
authored
Aug 09, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed issues when logging hours on a particular project
parent
81eb868c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
new.tcl
www/hours/new.tcl
+6
-12
No files found.
www/hours/new.tcl
View file @
b83a8f16
...
...
@@ -186,15 +186,15 @@ if {$timesheet_popup_installed_p} {
# Remove funny "{" or "
}
" characters in list
regsub -all {
[
\{\}
]
}
$project
_id_list "" project_id_list
# ad_return_complaint 1
$project
_id
if {0 !=
$project
_id} {
# Project specified => only one project
set one_project_only_p 1
set project_sql "
select p.project_id
from im_projects p
where p.project_id = :project_id
select :project_id::integer
"
} elseif {"" !=
$project
_id_list} {
...
...
@@ -233,7 +233,6 @@ if {0 != $project_id} {
"
}
# Determine how to show the tasks of projects.
switch
$task
_visibility_scope {
"
main_project
" {
...
...
@@ -317,10 +316,6 @@ switch $task_visibility_scope {
}
# ad_return_complaint 1
[
db_list vis
$task
_visibility_sql
]
set children_sql "
$task
_visibility_sql
UNION
...
...
@@ -340,8 +335,6 @@ set children_sql "
and p.parent_id is null
"
# ---------------------------------------------------------
# Build the main hierarchical SQL
# ---------------------------------------------------------
...
...
@@ -418,7 +411,7 @@ set sql "
# ---------------------------------------------------------
set open_projects_sql "
select p.project_id
select p.project_id
as open_project_id
from im_projects p,
acs_rels r
where r.object_id_two = :user_id
...
...
@@ -427,9 +420,10 @@ set open_projects_sql "
"
array set open_projects_hash {}
db_foreach open_projects
$open
_projects_sql {
set open_projects_hash(
$project
_id) 1
set open_projects_hash(
$
open
_
project_id) 1
}
# ---------------------------------------------------------
# Has-Children? This is used to disable super-projects with children
# ---------------------------------------------------------
...
...
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