- Fix saving empty values in LDAP contact data (#1485781)

release-0.6
alecpl 15 years ago
parent e83f035887
commit b4fa59143e

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Fix saving empty values in LDAP contact data (#1485781)
- Fix LDAP contact update when RDN field is changed (#1485788) - Fix LDAP contact update when RDN field is changed (#1485788)
- Fix LDAP attributes case senitivity problems (#1485830) - Fix LDAP attributes case senitivity problems (#1485830)
- Fix LDAP addressbook browsing when only one directory is used (#1486022) - Fix LDAP addressbook browsing when only one directory is used (#1486022)

@ -413,7 +413,7 @@ class rcube_ldap extends rcube_addressbook
$newentry['objectClass'] = $this->prop['LDAP_Object_Classes']; $newentry['objectClass'] = $this->prop['LDAP_Object_Classes'];
foreach ($save_cols as $col => $val) { foreach ($save_cols as $col => $val) {
$fld = $this->_map_field($col); $fld = $this->_map_field($col);
if ($fld != '') { if ($fld && $val) {
// The field does exist, add it to the entry. // The field does exist, add it to the entry.
$newentry[$fld] = $val; $newentry[$fld] = $val;
} // end if } // end if
@ -457,7 +457,7 @@ class rcube_ldap extends rcube_addressbook
$deletedata = array(); $deletedata = array();
foreach ($save_cols as $col => $val) { foreach ($save_cols as $col => $val) {
$fld = $this->_map_field($col); $fld = $this->_map_field($col);
if ($fld != '') { if ($fld) {
// The field does exist compare it to the ldap record. // The field does exist compare it to the ldap record.
if ($record[$col] != $val) { if ($record[$col] != $val) {
// Changed, but find out how. // Changed, but find out how.

Loading…
Cancel
Save