From 85637a1511967d47d0903d2db6acdc313c4f637e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 8 Aug 2018 16:19:56 -0400 Subject: [PATCH] Another fix for the custom field groups --- glm-member-db-contacts/views/front/contacts/list.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index faebdb6..b170296 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -439,14 +439,17 @@ and open the template in the editor. {/if} + {$customFieldGroups = apply_filters('get_glm_custom_grouped_fields','glm-member-db-contacts',$contact.id)} + + {if $customFieldGroups}

{apply_filters('get_glm_custom_field_tab_name', 'Custom Fields')}

- {$customFields = apply_filters('get_glm_custom_fields','glm-member-db-contacts',$contact.id)} + {foreach $customFieldGroups as $customFields} - {if !empty($customFields[0].field_data)} + {if !empty($customFields[0].field_data)} {foreach $customFields as $field} {if $field.field_data}
@@ -454,7 +457,7 @@ and open the template in the editor. {$field.field_name} {$field.field_data}
- +
{/if} {/foreach} @@ -462,6 +465,7 @@ and open the template in the editor. {/foreach}
+ {/if}
Hide full profile
-- 2.17.1