GroupList column displayed as None
-
$feed[‘meta’][‘groupList’] is string and $group->id is integer
So the comparison operator is wrong. Need to add a break once the group id matches.
Please change the code in
foreach ( $results as $group ) { if ( $group->id === $feed['meta']['groupList'] ) { $group_name = $group->name; } else { $group_name = __( 'None', 'connector-gravityforms-mailerlite' ); }}
to
foreach ( $results as $group ) { if ( $group->id == $feed['meta']['groupList'] ) { $group_name = $group->name; break; } else { $group_name = __( 'None', 'connector-gravityforms-mailerlite' ); }}
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘GroupList column displayed as None’ is closed to new replies.