diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-06 15:28:39 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-06 15:29:33 +0200 |
commit | 5c17338ac7e59889dec6fbddd511c1271176bcad (patch) | |
tree | a5f89ccc790eb9c210b38a64b3a56316976b72c8 /apps/contacts/ajax/saveproperty.php | |
parent | ed950e3ba2a0fcce09cd101a547b1818094d0de5 (diff) | |
download | nextcloud-server-5c17338ac7e59889dec6fbddd511c1271176bcad.tar.gz nextcloud-server-5c17338ac7e59889dec6fbddd511c1271176bcad.zip |
Contacts: Make js a tad DRYer. Added URL property.
Diffstat (limited to 'apps/contacts/ajax/saveproperty.php')
-rw-r--r-- | apps/contacts/ajax/saveproperty.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/contacts/ajax/saveproperty.php b/apps/contacts/ajax/saveproperty.php index 8409ffe47f2..d8400734710 100644 --- a/apps/contacts/ajax/saveproperty.php +++ b/apps/contacts/ajax/saveproperty.php @@ -98,15 +98,6 @@ if(!$value) { } else { /* setting value */ switch($element) { - case 'BDAY': - case 'FN': - case 'N': - case 'ORG': - case 'NOTE': - case 'NICKNAME': - debug('Setting string:'.$name.' '.$value); - $vcard->setString($name, $value); - break; case 'CATEGORIES': debug('Setting string:'.$name.' '.$value); $vcard->children[$line]->setValue($value); @@ -128,6 +119,10 @@ if(!$value) { } } break; + default: + debug('Setting string:'.$name.' '.$value); + $vcard->setString($name, $value); + break; } // Do checksum and be happy $checksum = md5($vcard->children[$line]->serialize()); |