Fix incomplete comment and add placeholder to duration_unit in Membership Type form.
authorDave Greenberg <dave@civicrm.org>
Wed, 21 May 2014 00:21:34 +0000 (17:21 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 21 May 2014 00:21:34 +0000 (17:21 -0700)
CRM/Mailing/Form/Settings.php
CRM/Member/Form/MembershipType.php

index 59825fb6c6a0501236c9a99fee5ec25dfb43e471..b62f8bd176539a14d8771ab318137fdb4e9c3d65 100644 (file)
@@ -66,7 +66,7 @@ class CRM_Mailing_Form_Settings extends CRM_Core_Form {
    */
   function setDefaultValues() {
     $mailingID = CRM_Utils_Request::retrieve('mid', 'Integer', $this, FALSE, NULL);
-    // CRM-
+    // CRM-14716 - Pick up mailingID from session since most of the time it's not in the URL
     if (!$mailingID) {
       $mailingID = $this->get('mailing_id');
     }
index ed58b41f24ff37ebe801a53cf949d979f33d99fd..17e0b726e03650c3bc5b5c44dff8136357db3754 100644 (file)
@@ -132,7 +132,7 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form {
     );
     $this->addRule('minimum_fee', ts('Please enter a monetary value for the Minimum Fee.'), 'money');
 
-    $this->addSelect('duration_unit', array('placeholder' => NULL), TRUE);
+    $this->addSelect('duration_unit', array(), TRUE);
 
     //period type
     $this->addSelect('period_type', array(), TRUE);