summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-29 16:45:52 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-29 16:45:52 +0200
commit6515c5c1e77e4abd8e9d504c1cec6455946bf52c (patch)
tree369b13ba0db004e12e41f58df37e6647e2080f87 /apps
parent1c1ed52867123f682c17265ae62958c7d908d325 (diff)
downloadnextcloud-server-6515c5c1e77e4abd8e9d504c1cec6455946bf52c.tar.gz
nextcloud-server-6515c5c1e77e4abd8e9d504c1cec6455946bf52c.zip
Contacts: NOTE wasn't saved properly.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/ajax/saveproperty.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/contacts/ajax/saveproperty.php b/apps/contacts/ajax/saveproperty.php
index 1af05682b63..6509ac21f28 100644
--- a/apps/contacts/ajax/saveproperty.php
+++ b/apps/contacts/ajax/saveproperty.php
@@ -96,12 +96,9 @@ switch($element) {
//$value = getOtherValue();
}
break;
- //case 'CATEGORIES':
- /* multi autocomplete triggers an save with empty value
- if (!$value) {
- $value = $vcard->getAsString('CATEGORIES');
- }
- break;*/
+ case 'NOTE':
+ $value = str_replace('\n', '\\n', $value);
+ break;
case 'EMAIL':
$value = strtolower($value);
break;