Commit 1af37dc1 authored by Frank Bergmann's avatar Frank Bergmann

-- fixed link 'Create new task' that is part of the form, wrong project_id had been passed

parent 36ff644e
......@@ -782,7 +782,7 @@ ad_proc -public im_timesheet_task_list_component {
<td align='right' colspan='99'>
<div>
<div style='float: left;'>
<a class='form-button40' href=\"/intranet-timesheet2-tasks/new?[export_url_vars project_id return_url]\">[_ intranet-timesheet2-tasks.New_Timesheet_Task]</a>
<a class='form-button40' href=\"[export_vars -base "/intranet-timesheet2-tasks/new" {{project_id $restrict_to_project_id} {return_url $current_url}}]\">[_ intranet-timesheet2-tasks.New_Timesheet_Task]</a>
</div>
</div>
</td>
......@@ -794,7 +794,7 @@ ad_proc -public im_timesheet_task_list_component {
<td align='right' colspan='99'>
<div>
<div style='float: left;'>
<a class='form-button40' href=\"/intranet-timesheet2-tasks/new?[export_url_vars project_id return_url]\">[_ intranet-timesheet2-tasks.New_Timesheet_Task]</a>
<a class='form-button40' href=\"[export_vars -base "/intranet-timesheet2-tasks/new" {{project_id $restrict_to_project_id} {return_url $current_url}}]\">[_ intranet-timesheet2-tasks.New_Timesheet_Task]</a>
</div>
<div style='float: right;'>
<select name=action>
......
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