From 6fa2602bfba8305de9672650c871eb26f48998bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Mar 2006 10:55:24 +0000 Subject: [PATCH] fix for bug [ 1445439 ] Timesheet links to many projects instead of one --- timesheet/inc/class.uitimesheet.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesheet/inc/class.uitimesheet.inc.php b/timesheet/inc/class.uitimesheet.inc.php index 2359677b56..3588f65227 100644 --- a/timesheet/inc/class.uitimesheet.inc.php +++ b/timesheet/inc/class.uitimesheet.inc.php @@ -168,7 +168,7 @@ class uitimesheet extends botimesheet 'view' => $view, $tabs => $content[$tabs], '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, ), 'js' => "\n",