Skip to content

Commit

Permalink
Fix reset() not affecting delivery.
Browse files Browse the repository at this point in the history
Fixes #2533
  • Loading branch information
markstory committed Feb 2, 2012
1 parent 83155c0 commit 6237111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cake/libs/controller/components/email.php
Expand Up @@ -438,6 +438,7 @@ function reset() {
$this->htmlMessage = null;
$this->textMessage = null;
$this->messageId = true;
$this->delivery = 'mail';
$this->__header = array();
$this->__boundary = null;
$this->__message = array();
Expand Down
1 change: 1 addition & 0 deletions cake/tests/cases/libs/controller/components/email.test.php
Expand Up @@ -1181,6 +1181,7 @@ function testReset() {
$this->assertIdentical($this->Controller->EmailTest->attachments, array());
$this->assertNull($this->Controller->EmailTest->textMessage);
$this->assertTrue($this->Controller->EmailTest->messageId);
$this->assertEqual('mail', $this->Controller->EmailTest->delivery);
}

function testPluginCustomViewClass() {
Expand Down

0 comments on commit 6237111

Please sign in to comment.