X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=report_send.php;h=526457bf4eafb2a57a7f80824e22f6e3cd9032c2;hb=bbea8c35f79ef9699e4b6deab0be3c1108628ef0;hp=9bbf9f51cb471522f89df418e67db370dd7eb508;hpb=6e023fcc8768de908976357682d951d9f9a42226;p=timetracker.git diff --git a/report_send.php b/report_send.php index 9bbf9f51..526457bf 100644 --- a/report_send.php +++ b/report_send.php @@ -29,7 +29,7 @@ require_once('initialize.php'); import('form.Form'); import('form.ActionForm'); -import('ttSysConfig'); +import('ttUserConfig'); import('ttReportHelper'); // Access check. @@ -38,7 +38,7 @@ if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) { exit(); } -$sc = new ttSysConfig($user->id); +$uc = new ttUserConfig(); if ($request->isPost()) { $cl_receiver = trim($request->getParameter('receiver')); @@ -46,8 +46,8 @@ if ($request->isPost()) { $cl_subject = trim($request->getParameter('subject')); $cl_comment = trim($request->getParameter('comment')); } else { - $cl_receiver = $sc->getValue(SYSC_LAST_REPORT_EMAIL); - $cl_cc = $sc->getValue(SYSC_LAST_REPORT_CC); + $cl_receiver = $uc->getValue(SYSC_LAST_REPORT_EMAIL); + $cl_cc = $uc->getValue(SYSC_LAST_REPORT_CC); $cl_subject = $i18n->get('form.mail.report_subject'); } @@ -67,8 +67,8 @@ if ($request->isPost()) { if ($err->no()) { // Save last report emails for future use. - $sc->setValue(SYSC_LAST_REPORT_EMAIL, $cl_receiver); - $sc->setValue(SYSC_LAST_REPORT_CC, $cl_cc); + $uc->setValue(SYSC_LAST_REPORT_EMAIL, $cl_receiver); + $uc->setValue(SYSC_LAST_REPORT_CC, $cl_cc); // Obtain session bean with report attributes. $bean = new ActionForm('reportBean', new Form('reportForm'));