Skip to content

Commit

Permalink
Bugfix for correct subject in the profile debug mail
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Oct 22, 2013
1 parent 30ec070 commit d92b993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions application/modules/Profile/Controller/AttributeSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function _sendAttributeSupportMail() {
$normalizer = new EngineBlock_Attributes_Normalizer($this->attributes);
$normalizedAttributes = $normalizer->normalize();
$email = EngineBlock_ApplicationSingleton::getInstance()->getConfigurationValue('email')->help;
$nameId = $normalizedAttributes['nameid'];
$nameId = $normalizedAttributes['nameid'][0];

$view = $this->_getView();
$view->setData(
Expand All @@ -48,10 +48,6 @@ protected function _sendAttributeSupportMail() {
);
$body = $view->render(ENGINEBLOCK_FOLDER_MODULES . '/Profile/View/AttributeSupport/ProfileMail.phtml', false);

EngineBlock_ApplicationSingleton::getLog()->info(
$body
);

$mailer = new Zend_Mail('UTF-8');
$mailer->setFrom($email);
$mailer->addTo($email);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<p>The following attribute information was send through the Profile application:</p>
<table>
<thead>
<tr>
Expand Down

0 comments on commit d92b993

Please sign in to comment.