Details
- 
    Type:
Bug
 - 
    Status: Done/Fixed
 - 
    Priority:
Major
 - 
    Resolution: Fixed/Completed
 - 
    Affects Version/s: 4.5
 - 
    Fix Version/s: 4.5.1
 - 
    Component/s: Core CiviCRM
 
- 
        Documentation Required?:None
 
Description
On the page for creating a printable (PDF) letter, if you select a template in the dropdown, the template fails to load and contents of the editor remain unchanged. This means that you cannot use a template when composing a letter.
A JavaScript error occurs at the same time. In Chrome it is reported as "Uncaught TypeError: Cannot set property 'checked' of undefined" and in Firefox it is reported as "TypeError: document.getElementsByName(...)[0] is undefined".
Although the page for creating a new Mailing is similar, this bug does not affect template selection when creating a new Mailing.
This error can be reproduced on the 4.5 Drupal sandbox (drupal.sandbox.civicrm.org) and the 4.5 WordPress sandbox (wordpress.sandbox.civicrm.org).