From eb3dd68d45a5c9174546b2d0fb440cea66f15906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Wed, 31 Oct 2007 21:02:04 +0000 Subject: [PATCH] add mendatory fields again which got lost by the patches of Patrick Bihan-Faou --- addressbook/inc/class.vcaladdressbook.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.vcaladdressbook.inc.php b/addressbook/inc/class.vcaladdressbook.inc.php index f4913aa87a..1d4d5b54d9 100644 --- a/addressbook/inc/class.vcaladdressbook.inc.php +++ b/addressbook/inc/class.vcaladdressbook.inc.php @@ -127,9 +127,10 @@ class vcaladdressbook extends bocontacts $values[] = $value; } - if ($hasdata <= 0) + if ($hasdata <= 0 && !in_array($vcardField,array('FN','ORG','N'))) { - // don't add the entry if there is no data for this field + // don't add the entry if there is no data for this field, + // except it's a mendatory field continue; }