From 838353bf9dd94fc8340b010f7819b9042ea6b4af Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 13 Jun 2016 13:51:42 +0200 Subject: [PATCH] fix address book not updated bug --- php/module.contact.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php/module.contact.php b/php/module.contact.php index fd7e5d0..8b33fef 100644 --- a/php/module.contact.php +++ b/php/module.contact.php @@ -551,6 +551,8 @@ class ContactModule extends Module { case 0: $properties["email_address_1"] = $email; $properties["email_address_display_name_1"] = $fileas . " (" . $email . ")"; + $properties["address_book_mv"] = [0]; // this is needed for adding the contact to the email address book, 0 = email 1 + $properties["address_book_long"] = 1; // this specifies the number of elements in address_book_mv break; case 1: $properties["email_address_2"] = $email;