X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report.php;h=6cec03794f50dcb45f3cfa312255288b04db5c38;hb=f12e0989887b6cc05cef4d252105083eac063cd5;hp=7bf0e2acee3d8c8c737303ed269628670c338284;hpb=1647c2dbe4244fa273ec515b55b42a0a933cce61;p=timetracker.git diff --git a/report.php b/report.php index 7bf0e2ac..6cec0379 100644 --- a/report.php +++ b/report.php @@ -47,6 +47,8 @@ if ($user->isPluginEnabled('ps')) { if ($user->isPluginEnabled('iv')) { $cl_assign_invoice_select_option = $request->getParameter('assign_invoice_select_options', ($request->isPost() ? null : @$_SESSION['assign_invoice_select_option'])); $_SESSION['assign_invoice_select_option'] = $cl_assign_invoice_select_option; + $cl_recent_invoice_option = $request->getParameter('recent_invoice', ($request->isPost() ? null : @$_SESSION['recent_invoice_option'])); + $_SESSION['recent_invoice_option'] = $cl_recent_invoice_option; } // Use custom fields plugin if it is enabled. @@ -98,10 +100,11 @@ if ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->g 'name'=>'recent_invoice', 'data'=>$recent_invoices, 'datakeys'=>array('id','name'), + 'value'=>$cl_recent_invoice_option, 'empty'=>array(''=>$i18n->getKey('dropdown.select_invoice')))); $form->addInput(array('type'=>'submit','name'=>'btn_assign','value'=>$i18n->getKey('button.submit'))); + $smarty->assign('use_assign_to_invoice', true); } - $smarty->assign('use_assign_to_invoice', true); } if ($request->isPost()) {