summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-20 23:18:56 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-20 23:18:56 +0200
commitdf1f2136f1e268da59b2c56a042f776f1829a9c9 (patch)
treef123cae5c6e2079e83c3c903ff9b8de44bcfb82d /js
parenta4fe8a06a814a216a20e8c861ada446f45a7ffbc (diff)
In case no FN is defined we use N - temporal hack for now until we properly support N handling - fixes #322
Diffstat (limited to 'js')
-rw-r--r--js/models/contact_model.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/models/contact_model.js b/js/models/contact_model.js
index 6954b590..d55aea7e 100644
--- a/js/models/contact_model.js
+++ b/js/models/contact_model.js
@@ -33,9 +33,12 @@ angular.module('contactsApp')
var property = model.getProperty('fn');
if(property) {
return property.value;
- } else {
- return undefined;
}
+ property = model.getProperty('n');
+ if(property) {
+ return property.value.join();
+ }
+ return undefined;
}
},