Skip to content

Commit c017cdb

Browse files
committed
fix (iOS): changes key notes to note
1 parent d631397 commit c017cdb

6 files changed

+12
-9
lines changed

contact-helper.ios.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ var WORK_FAX = "_$!<WorkFAX>!$_";
66
var MAIN = "_$!<Main>!$_";
77

88
exports.getiOSValue = function(key, contactData){
9+
if (key === 'notes') {
10+
key = 'note';
11+
}
912
return contactData.isKeyAvailable(key) ? contactData[key] : "";
1013
};
1114

contact-model.ios.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ var Contact = (function (_super) {
125125
"jobTitle",
126126
"departmentName",
127127
"organizationName",
128-
"notes",
128+
"note",
129129
"phoneNumbers",
130130
"emailAddresses",
131131
"postalAddresses",
@@ -179,8 +179,8 @@ var Contact = (function (_super) {
179179
return CNLabeledValue.labeledValueWithLabelValue(helper.getNativeGenericLabel(item.label), mutableAddress)
180180
});
181181

182-
// Set Notes
183-
contactRecord.notes = this.notes;
182+
// Set Note
183+
contactRecord.note = this.notes;
184184

185185
// Set Websites
186186
contactRecord.urlAddresses = this.urls.map(function (item) {
@@ -241,7 +241,7 @@ var Contact = (function (_super) {
241241
"jobTitle",
242242
"departmentName",
243243
"organizationName",
244-
"notes",
244+
"note",
245245
"phoneNumbers",
246246
"emailAddresses",
247247
"postalAddresses",

get-all-contacts-worker.ios.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ self.onmessage = function (event) {
1919

2020
if (contactFields.indexOf('organization') > -1) { keysToFetch.push("jobTitle", "departmentName", "organizationName"); }
2121
if (contactFields.indexOf('nickname') > -1) { keysToFetch.push("nickname"); }
22-
if (contactFields.indexOf('notes') > -1) { keysToFetch.push("notes"); }
22+
if (contactFields.indexOf('notes') > -1) { keysToFetch.push("note"); }
2323
if (contactFields.indexOf('photo') > -1) { keysToFetch.push("imageData", "imageDataAvailable"); }
2424
if (contactFields.indexOf('phoneNumbers') > -1) { keysToFetch.push("phoneNumbers"); }
2525
if (contactFields.indexOf('emailAddresses') > -1) { keysToFetch.push("emailAddresses"); }

get-contacts-by-name-worker.ios.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ self.onmessage = function (event) {
1919

2020
if (contactFields.indexOf('organization') > -1) { keysToFetch.push("jobTitle", "departmentName", "organizationName"); }
2121
if (contactFields.indexOf('nickname') > -1) { keysToFetch.push("nickname"); }
22-
if (contactFields.indexOf('notes') > -1) { keysToFetch.push("notes"); }
22+
if (contactFields.indexOf('notes') > -1) { keysToFetch.push("note"); }
2323
if (contactFields.indexOf('photo') > -1) { keysToFetch.push("imageData", "imageDataAvailable"); }
2424
if (contactFields.indexOf('phoneNumbers') > -1) { keysToFetch.push("phoneNumbers"); }
2525
if (contactFields.indexOf('emailAddresses') > -1) { keysToFetch.push("emailAddresses"); }

group-model.ios.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var Group = (function (_super) {
116116
"jobTitle",
117117
"departmentName",
118118
"organizationName",
119-
"notes",
119+
"note",
120120
"phoneNumbers",
121121
"emailAddresses",
122122
"postalAddresses",
@@ -171,7 +171,7 @@ var Group = (function (_super) {
171171
"jobTitle",
172172
"departmentName",
173173
"organizationName",
174-
"notes",
174+
"note",
175175
"phoneNumbers",
176176
"emailAddresses",
177177
"postalAddresses",

index.ios.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ exports.getContactsInGroup = function(g) {
192192
"jobTitle",
193193
"departmentName",
194194
"organizationName",
195-
"notes",
195+
"note",
196196
"phoneNumbers",
197197
"emailAddresses",
198198
"postalAddresses",

0 commit comments

Comments
 (0)