From c71e95b775f94ac39a0b83c7cdbd15c4f545f557 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 12 Apr 2012 08:39:40 +0000 Subject: - Fix adding contact form fields in situation when the fieldset is empty. Fixes issue with lost manager/assistant fields in LDAP addressbook --- program/steps/addressbook/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/addressbook/func.inc') diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index eb8a0e597..e32ce5a12 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -669,7 +669,7 @@ function rcmail_contact_form($form, $record, $attrib = null) } } - if (!$content) + if (!$content && !$edit_mode) continue; // also render add-field selector -- cgit v1.2.3