CRM-17197 - Autorenew is not offered when the price_field is select
authoreileenmcnaugton <eileen@fuzion.co.nz>
Thu, 10 Sep 2015 02:26:26 +0000 (14:26 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Thu, 10 Sep 2015 02:34:56 +0000 (14:34 +1200)
Note that this proposed fix moves the final div down. It seems to make sense to move the help_post div down too
although I didn't go that far

templates/CRM/Price/Form/PriceSet.tpl

index 9ee1f2b0fc3ba322d2052dc5f3e5dfeb95393a28..b2bda8d6cb547ecf228f53b79d4091dc738d2dd3 100644 (file)
                   <div class="description">{$element.help_post}</div>
                 {/if}
               </div>
-
-                {if !empty($extends) && $extends eq "Membership"}
-                  <div id="allow_auto_renew">
-                    <div class='crm-section auto-renew'>
-                      <div class='label'></div>
-                      <div class ='content'>
-                        {if isset($form.auto_renew) }
-                          {$form.auto_renew.html}&nbsp;{$form.auto_renew.label}
-                        {/if}
-                      </div>
-                    </div>
-                  </div>
-                {/if}
-                <div class="clear"></div>
             {else}
 
                 {assign var="element_name" value="price_"|cat:$field_id}
                   {/if}
                   {if $element.help_post}<br /><span class="description">{$element.help_post}</span>{/if}
                 </div>
-                <div class="clear"></div>
 
             {/if}
+              {if !empty($extends) && $extends eq "Membership" && $element.html_type != 'Text'}
+                <div id="allow_auto_renew">
+                  <div class='crm-section auto-renew'>
+                    <div class='label'></div>
+                    <div class ='content'>
+                      {if isset($form.auto_renew) }
+                        {$form.auto_renew.html}&nbsp;{$form.auto_renew.label}
+                      {/if}
+                    </div>
+                  </div>
+                </div>
+              {/if}
+              <div class="clear"></div>
           </div>
         {/if}
     {/foreach}