fixes core#3106 - raise max inline edit websites to 25
authorJon Goldberg <jon@megaphonetech.com>
Tue, 8 Mar 2022 20:34:26 +0000 (15:34 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Tue, 8 Mar 2022 20:38:05 +0000 (15:38 -0500)
CRM/Contact/Form/Inline/Website.php
templates/CRM/Contact/Form/Inline/Website.tpl

index aba4d13bec7845c5ed554f8aa854824dfc003a8f..542e85319d5e457d4c2a896e7d64d4fe12345eee 100644 (file)
@@ -30,7 +30,7 @@ class CRM_Contact_Form_Inline_Website extends CRM_Contact_Form_Inline {
    * No of website blocks for inline edit.
    * @var int
    */
-  private $_blockCount = 6;
+  private $_blockCount = 26;
 
   /**
    * Call preprocess.
index c1400c82357eb30fbb507312456b5337ecee00ef..e5d5bf5838f4277ebe48f1c833b4cad6f953dd69 100644 (file)
@@ -21,7 +21,7 @@
     <tr>
       <td>{ts}Website{/ts}
         {help id="id-website" file="CRM/Contact/Form/Contact.hlp"}
-        {if $actualBlockCount lt 5 }
+        {if $actualBlockCount lt 25 }
           &nbsp;&nbsp;<span id="add-more-website" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span>
         {/if}
       </td>