summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-30 11:37:11 +0100
committerJulius Härtl <jus@bitgrid.net>2018-10-30 11:37:11 +0100
commite6952edaf450c6a74e38eac27d1de37b1934d6e3 (patch)
tree98ac2adfb2d55b21eb605cf5dc2f84619f0263b8 /core
parenta0d759b32460e0bb57011202df332d1bb6e7034a (diff)
downloadnextcloud-server-e6952edaf450c6a74e38eac27d1de37b1934d6e3.tar.gz
nextcloud-server-e6952edaf450c6a74e38eac27d1de37b1934d6e3.zip
Don't enforce merged property
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index c255152e666..082bf9571d7 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -339,15 +339,11 @@
* merged contacts, if the search term matches its contact name
*/
for (i = 0; i < groupedLength; i++) {
- console.log(grouped[i]);
if (typeof grouped[i].uuid !== 'undefined' && grouped[i].uuid === previousUuid) {
grouped[i].merged = true;
- } else {
- grouped[i].merged = false;
}
- if (searchTerm === grouped[i].name || grouped[i].merged === false) {
+ if (searchTerm === grouped[i].name || typeof grouped[i].merged === 'undefined') {
result.push(grouped[i]);
- } else {
}
previousUuid = grouped[i].uuid;
}