Bug in Magento 1.4.1.0/1.4.1.1 affecting the recalling of newsletter templates to send

Advertisements

So I wondered if I could go a whole week without finding another bug/flaw/issue in the latest Magento. I was wrong.

We’re trying to send out a newsletter using the built-in feature. I created a template, then went to queue to send it, and I was like; “So, what’s this ‘message’ field?”. I pondered for a bit, typed a message in, thinking it may have just been for some placeholder in the template somewhere, and hit send. When the newsletter turned up, lo-and-behold, there was just my message, without the rest of the template. WTF? Did it again, thinking I’d screwed something up – same result. Hmm..

Bit of Googling at this point revealed this thread on Magento’s forums. “A bug?”, I thought as I read on. “Couldn’t possibly be!”. </sarcasm>

As the code/class that had the flaw only had one function and extended the Adminhtml_Block_Widget_Form class, I decided to just write a quick extension to replace the class that Magento comes with, with this flaw fixed. I attach to this post my quick extension. Just drop this in the Magento webroot and extract. It’ll put the files in the relevant places, and just start working.

Attached file here: [download id=”3″ format=”7″]

Join the Conversation

4 Comments

  1. Hi, thnx for this!
    I had the same Magento Newsletter problem. Is it possible for you to e-mail the fix?
    I would really appreciate it.
    Iwin

  2. Hi,
    This problem was resolved in Magento 1.4.2.0-RC1. As the latest stable version is 1.5.0.0, there is no need for the fix on this page anymore. See this post.
    Dan

  3. Thanks man, working great. Except the download link here is broken, and i have to find copy of your module at magento forums.

  4. Hi!
    Thanks for pointing that out. I’ve corrected the link here now. Seems I forgot to change some links where I reconfigured this WordPress Download Monitor plugin!
    Dan

Leave a comment

Your email address will not be published. Required fields are marked *