Skip to content

Commit 1cfba8c

Browse files
Fix GROUPINGS not being mapped to a MailChimp list. Closes #100 .
1 parent 0618786 commit 1cfba8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-field-mapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function map_data_to_list( $list ) {
201201
}
202202

203203
// loop through list groupings if GROUPINGS data was sent
204-
if( isset( $data['GROUPINGS'] ) && is_array( $data['GROUPINGS'] ) && ! empty( $list->interest_groupings ) ) {
204+
if( isset( $this->form_data['GROUPINGS'] ) && is_array( $this->form_data['GROUPINGS'] ) && ! empty( $list->interest_groupings ) ) {
205205

206206
$list_map['GROUPINGS'] = array();
207207

0 commit comments

Comments
 (0)