Index: branches/5.2.x/core/units/forms/submission_log/submission_log_eh.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/forms/submission_log/submission_log_eh.php (.../submission_log_eh.php) (revision 14244) +++ branches/5.2.x/core/units/forms/submission_log/submission_log_eh.php (.../submission_log_eh.php) (revision 14628) @@ -1,6 +1,6 @@ getSection(); $form_id = $this->Application->GetVar('form_id'); @@ -75,7 +76,8 @@ /* @var $form_submission_helper FormSubmissionHelper */ $form =& $form_submission_helper->getForm($form_submission); - + /* @var $form kDBItem */ + $from_email = $form->GetDBField('ReplyFromEmail'); $to_email = $form_submission_helper->getFieldByRole($form_submission, SubmissionFormField::COMMUNICATION_ROLE_EMAIL); @@ -233,8 +235,10 @@ * Updates last operation dates for log record * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemCreate(&$event) + protected function OnBeforeItemCreate(&$event) { parent::OnBeforeItemCreate($event); @@ -246,8 +250,10 @@ * Updates last operation dates for log record * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(&$event) { parent::OnBeforeItemUpdate($event); @@ -392,8 +398,10 @@ * Updates last update time for submission * * @param kEvent $event + * @return void + * @access protected */ - function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(&$event) { parent::OnAfterItemCreate($event); @@ -405,11 +413,11 @@ $this->_updateSubmission($event); $reply_to = $object->GetDBField('ReplyTo'); - if (!$reply_to) { + if ( !$reply_to ) { $reply_to = $this->_getLastMessageId($event, !$this->Application->GetVar('client_mode')); } - if ($reply_to) { + if ( $reply_to ) { // this is reply to other message -> mark it as replied $org_message =& $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); /* @var $org_message kDBItem */ @@ -419,7 +427,7 @@ $org_message->Update(); } - if ($this->Application->GetVar('client_mode')) { + if ( $this->Application->GetVar('client_mode') ) { // new reply from client received -> send notification about it $this->Application->EmailEventAdmin('FORM.SUBMISSION.REPLY.FROM.USER'); }