Skip to content

Commit 64c1170

Browse files
committed
Google Maps in Email will show Address. Fixes #45
1 parent a3d7a71 commit 64c1170

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

includes/class-notification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public function replace_all_fields( $text = '' ) {
648648
$table .= '<tr class="field-value">';
649649
$table .= '<td>';
650650

651-
if ( in_array( $value['type'], [ 'multiple_select', 'checkbox_field' ] ) ) {
651+
if ( in_array( $value['type'], [ 'multiple_select', 'checkbox_field', 'google_maps' ] ) ) {
652652
$field_value = is_array( $field_value ) ? $field_value : [];
653653

654654
if ( $field_value ) {
@@ -661,6 +661,8 @@ public function replace_all_fields( $text = '' ) {
661661
} else {
662662
$table .= '&mdash;';
663663
}
664+
}elseif (in_array( $value['type'], [ 'google_map' ] ) ) {
665+
$table .= $field_value['address'];
664666
} else {
665667
$table .= $field_value;
666668
}

0 commit comments

Comments
 (0)