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
89c1390b
Commit
89c1390b
authored
Aug 13, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed weekly report infinite loop
parent
7b409388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
5 deletions
+38
-5
weekly_report.tcl
www/weekly_report.tcl
+38
-5
No files found.
www/weekly_report.tcl
View file @
89c1390b
...
...
@@ -121,11 +121,44 @@ if { $owner_id != $user_id && ![im_permission $user_id "view_hours_all"] } {
}
if
{
$start
_at ==
""
&&
$project
_id != 0
}
{
set redirect_sql
"
select to_char(max(day), :date_format)
from im_hours
where project_id = :project_id"
set start_at
[
db_string get_new_start_at
$redirect
_sql
]
set hours_start_date
[
db_string get_new_start_at
"
select to_char(max(day), :date_format)
from im_hours
where project_id = :project_id
"
-default
""
]
set project_start_date
[
db_string get_project_start
"
select to_char(start_date, :date_format)
from im_projects
where project_id = :project_id
"
-default
""
]
set todays_date
[
db_string todays_date
"
select to_char(now() :date_format)
from dual
"
-default
""
]
set start_date
$hours
_start_date
if
{
""
==
$start
_date
}
{
set start_date
$project
_start_date
ad_return_complaint 1 project_start_date
}
else
{
ad_return_complaint 1 hours_start_date
}
if
{
""
==
$start
_date
}
{
set start_date
$todays
_date
ad_return_complaint 1 todays_date
}
if
{
$start
_at ==
""
}
{
ad_return_complaint 1
"Unable to determine start date for project
\#
$project
_id:<br>
please set the 'Start Date' of the project"
.
return
}
ad_returnredirect
"
$return
_url?
[
export_url_vars start_at duration project_id owner_id
]
"
return
}
...
...
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