Update for contact export of billing fields.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 21 Aug 2018 15:09:12 +0000 (11:09 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 21 Aug 2018 15:09:12 +0000 (11:09 -0400)
Need to format the anniversary date also.

models/admin/ajax/contactsListExport.php

index d87e15f..329f8b9 100644 (file)
@@ -229,6 +229,7 @@ class GlmMembersAdmin_ajax_contactsListExport extends GlmDataContacts
                         $billing_data = apply_filters( 'glm-member-db-billing-get-data', $v['ref_dest'] );
                         foreach ( $BFSelect as $bf_val ) {
                             switch( $bf_val ) {
+                            case 'anniversary_date':
                             case 'renewal_date':
                                 $list[$k][$bf_val] = $billing_data[$bf_val] ? date( 'm/d/Y', strtotime( $billing_data[$bf_val] ) ): '';
                                 break;