fix for bug [ 1445439 ] Timesheet links to many projects instead of one

This commit is contained in:
Ralf Becker 2006-03-08 10:55:24 +00:00
parent ad2083d1a6
commit 6fa2602bfb

View File

@ -168,7 +168,7 @@ class uitimesheet extends botimesheet
'view' => $view, 'view' => $view,
$tabs => $content[$tabs], $tabs => $content[$tabs],
'link_to' => array( 'link_to' => array(
'to_id' => $this->data['ts_id'] ? $this->data['ts_id'] : $content['link_to']['to_id'], 'to_id' => $this->data['ts_id'] || $button == 'save_new' ? $this->data['ts_id'] : $content['link_to']['to_id'],
'to_app' => TIMESHEET_APP, 'to_app' => TIMESHEET_APP,
), ),
'js' => "<script>\n$js\n</script>\n", 'js' => "<script>\n$js\n</script>\n",