From: Laury GvR Date: Wed, 8 Aug 2018 20:19:56 +0000 (-0400) Subject: Another fix for the custom field groups X-Git-Tag: v1.0.19^2~26 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=85637a1511967d47d0903d2db6acdc313c4f637e;p=WP-Themes%2Fmigcsa.git Another fix for the custom field groups --- 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