From: Eileen McNaughton Date: Wed, 20 May 2015 09:28:30 +0000 (+1200) Subject: CRM-16450 patch for div layout on multi custom tab X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4da822ca3f10216cc8249072659d46173970a6e4;p=civicrm-core.git CRM-16450 patch for div layout on multi custom tab --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 59707c5c30..68da010324 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -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 diff --git a/CRM/Profile/Page/MultipleRecordFieldsListing.php b/CRM/Profile/Page/MultipleRecordFieldsListing.php index 33ccc48ce8..a5219a7298 100644 --- a/CRM/Profile/Page/MultipleRecordFieldsListing.php +++ b/CRM/Profile/Page/MultipleRecordFieldsListing.php @@ -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, diff --git a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl index dd4aefb685..c43a5546bd 100644 --- a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl +++ b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl @@ -73,12 +73,15 @@ {/if} {if !$reachedMax} - {if $pageViewType eq 'customDataView'} -
{ts 1=$customGroupTitle}Add %1 Record{/ts}
- {else} -
{ts}Add New Record{/ts}
- {/if} + +
{/if} {/if}