- $sc->setValue(SYSC_LAST_REPORT_EMAIL, $cl_receiver);
- $sc->setValue(SYSC_LAST_REPORT_CC, $cl_cc);
-
- // Obtain session bean with report attributes.
- $bean = new ActionForm('reportBean', new Form('reportForm'));
- // Prepare report body.
- $body = ttReportHelper::prepareReportBody($bean, $cl_comment);
-
+ $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'));
+ $options = ttReportHelper::getReportOptions($bean);
+
+ // Prepare report body.
+ $body = ttReportHelper::prepareReportBody($options, $cl_comment);
+