CRM-16450 patch for div layout on multi custom tab
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 20 May 2015 09:28:30 +0000 (21:28 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 20 May 2015 09:28:30 +0000 (21:28 +1200)
CRM/Core/BAO/CustomField.php
CRM/Profile/Page/MultipleRecordFieldsListing.php
templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl

index 59707c5c30500007748e7249254ae949fb097040..68da01032400eeb06500f10e1be133798cce3653 100644 (file)
@@ -1112,7 +1112,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *   The custom field value.
    * @param int $id
    *   The custom field id.
-   * @param int $options
+   * @param array $options
    *   The assoc array of option name/value pairs.
    *
    * @param int $contactID
index 33ccc48ce8bc9645aa768c52375c46e31ba88217..a5219a729894e0fce64f6a216862903dfd8bed1c 100644 (file)
@@ -171,6 +171,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic {
   public function browse() {
     $dateFields = NULL;
     $cgcount = 0;
+    $attributes = array();
     $dateFieldsVals = NULL;
     if ($this->_pageViewType == 'profileDataView' && $this->_profileId) {
       $fields = CRM_Core_BAO_UFGroup::getFields($this->_profileId, FALSE, NULL,
index dd4aefb68591a89c1a0b2945296674a0a9b9bea4..c43a5546bdc5358e524350bed6679f71b79af384 100644 (file)
   {/if}
 
   {if !$reachedMax}
-    {if $pageViewType eq 'customDataView'}
-      <br/><a accesskey="N" title="{ts 1=$customGroupTitle}Add %1 Record{/ts}" href="{crmURL p='civicrm/contact/view/cd/edit' q="reset=1&type=$ctype&groupID=$customGroupId&entityID=$contactId&cgcount=$cgcount&multiRecordDisplay=single&mode=add"}"
-       class="button action-item"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$customGroupTitle}Add %1 Record{/ts}</span></a>
-    {else}
-      <a accesskey="N" href="{crmURL p='civicrm/profile/edit' q="reset=1&id=`$contactId`&multiRecord=add&gid=`$gid`&context=multiProfileDialog&onPopupClose=`$onPopupClose`"}"
-       class="button action-item"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add New Record{/ts}</span></a>
-    {/if}
+    <div class="action-link">
+      {if $pageViewType eq 'customDataView'}
+        <br/><a accesskey="N" title="{ts 1=$customGroupTitle}Add %1 Record{/ts}" href="{crmURL p='civicrm/contact/view/cd/edit' q="reset=1&type=$ctype&groupID=$customGroupId&entityID=$contactId&cgcount=$cgcount&multiRecordDisplay=single&mode=add"}"
+         class="button action-item"><span><div class="icon ui-icon-circle-plus"></div>{ts 1=$customGroupTitle}Add %1 Record{/ts}</span></a>
+      {else}
+        <a accesskey="N" href="{crmURL p='civicrm/profile/edit' q="reset=1&id=`$contactId`&multiRecord=add&gid=`$gid`&context=multiProfileDialog&onPopupClose=`$onPopupClose`"}"
+         class="button action-item"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add New Record{/ts}</span></a>
+      {/if}
+    </div>
+    <br />
   {/if}
 {/if}