Commit 217fe055 authored by Frank Bergmann's avatar Frank Bergmann

- fixed bug with return URL

parent 21ceb57e
...@@ -89,7 +89,7 @@ ad_proc -public im_timesheet_project_component {user_id project_id} { ...@@ -89,7 +89,7 @@ ad_proc -public im_timesheet_project_component {user_id project_id} {
im_project_permissions $user_id $project_id view read write admin im_project_permissions $user_id $project_id view read write admin
if { ![info exists return_url] } { if { ![info exists return_url] } {
set return_url "" set return_url "[ad_conn url]?[ad_conn query]"
} }
set hours_logged "<ul>" set hours_logged "<ul>"
...@@ -121,7 +121,7 @@ ad_proc -public im_timesheet_project_component {user_id project_id} { ...@@ -121,7 +121,7 @@ ad_proc -public im_timesheet_project_component {user_id project_id} {
set log_hours_link "<a href=/intranet-timesheet2/hours/new?project_id=$project_id&[export_url_vars return_url]>" set log_hours_link "<a href=/intranet-timesheet2/hours/new?project_id=$project_id&[export_url_vars return_url]>"
append hours_logged "<li><font color=\"\#FF0000\">[_ intranet-timesheet2.lt_Today_you_didnt_log_y]</font> [_ intranet-timesheet2.lt_Log_your_log_hours_li]</a>\n" append hours_logged "<li><font color=\"\#FF0000\">[_ intranet-timesheet2.lt_Today_you_didnt_log_y]</font> [_ intranet-timesheet2.lt_Log_your_log_hours_li]</a>\n"
} else { } else {
set log_hours_link "<a href=/intranet-timesheet2/hours/new?project_id=$project_id&return_url=$return_url>" set log_hours_link "<a href=\"/intranet-timesheet2/hours/new?[export_url_vars project_id return_url]\">"
append hours_logged "<li>[_ intranet-timesheet2.lt_Log_your_log_hours_li_1]</a>\n" append hours_logged "<li>[_ intranet-timesheet2.lt_Log_your_log_hours_li_1]</a>\n"
} }
# Show the "Work Absences" link only to in-house staff. # Show the "Work Absences" link only to in-house staff.
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<% } %> <% } %>
<% if { ![empty_string_p $return_url] } { %> <% if { ![empty_string_p $return_url] } { %>
<li> <li>
<a href=$return_url>#intranet-timesheet2.lt_Return_to_previous_pa#</a> <a href="@return_url@">#intranet-timesheet2.lt_Return_to_previous_pa#</a>
<% } %> <% } %>
</td> </td>
</tr> </tr>
......
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