projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed prePopulateFromPastWeeks for week view plugin.
[timetracker.git]
/
report_send.php
diff --git
a/report_send.php
b/report_send.php
index
9bbf9f5
..
526457b
100644
(file)
--- a/
report_send.php
+++ b/
report_send.php
@@
-29,7
+29,7
@@
require_once('initialize.php');
import('form.Form');
import('form.ActionForm');
require_once('initialize.php');
import('form.Form');
import('form.ActionForm');
-import('tt
Sys
Config');
+import('tt
User
Config');
import('ttReportHelper');
// Access check.
import('ttReportHelper');
// Access check.
@@
-38,7
+38,7
@@
if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) {
exit();
}
exit();
}
-$
sc = new ttSysConfig($user->id
);
+$
uc = new ttUserConfig(
);
if ($request->isPost()) {
$cl_receiver = trim($request->getParameter('receiver'));
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_subject = trim($request->getParameter('subject'));
$cl_comment = trim($request->getParameter('comment'));
} else {
- $cl_receiver = $
s
c->getValue(SYSC_LAST_REPORT_EMAIL);
- $cl_cc = $
s
c->getValue(SYSC_LAST_REPORT_CC);
+ $cl_receiver = $
u
c->getValue(SYSC_LAST_REPORT_EMAIL);
+ $cl_cc = $
u
c->getValue(SYSC_LAST_REPORT_CC);
$cl_subject = $i18n->get('form.mail.report_subject');
}
$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.
if ($err->no()) {
// Save last report emails for future use.
- $
s
c->setValue(SYSC_LAST_REPORT_EMAIL, $cl_receiver);
- $
s
c->setValue(SYSC_LAST_REPORT_CC, $cl_cc);
+ $
u
c->setValue(SYSC_LAST_REPORT_EMAIL, $cl_receiver);
+ $
u
c->setValue(SYSC_LAST_REPORT_CC, $cl_cc);
// Obtain session bean with report attributes.
$bean = new ActionForm('reportBean', new Form('reportForm'));
// Obtain session bean with report attributes.
$bean = new ActionForm('reportBean', new Form('reportForm'));