Commit dc112820 authored by Frank Bergmann's avatar Frank Bergmann

- fixed weekly_report infinite loop

parent 89c1390b
...@@ -135,27 +135,21 @@ if { $start_at == "" && $project_id != 0 } { ...@@ -135,27 +135,21 @@ if { $start_at == "" && $project_id != 0 } {
" -default ""] " -default ""]
set todays_date [db_string todays_date " set todays_date [db_string todays_date "
select to_char(now() :date_format) select to_char(now(), :date_format)
from dual from dual
" -default ""] " -default ""]
set start_date $hours_start_date set start_at $hours_start_date
if {"" == $start_date} { if {"" == $start_at} {
set start_date $project_start_date set start_at $project_start_date
ad_return_complaint 1 project_start_date
} else {
ad_return_complaint 1 hours_start_date
} }
if {"" == $start_at} {
if {"" == $start_date} { set start_at $todays_date
set start_date $todays_date
ad_return_complaint 1 todays_date ad_return_complaint 1 todays_date
} }
if {"" == $start_at} {
if {$start_at == ""} {
ad_return_complaint 1 "Unable to determine start date for project \#$project_id:<br> ad_return_complaint 1 "Unable to determine start date for project \#$project_id:<br>
please set the 'Start Date' of the project". please set the 'Start Date' of the project"
return return
} }
......
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