[Pkg-mozext-commits] [gcontactsync] 26/88: Fix for the 0.4.0rc1 upgrade code to remove the property type, not the property itself
David Prévot
taffit at moszumanska.debian.org
Thu Sep 18 20:52:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository gcontactsync.
commit 882f0f8844eee044c9728fbfb8b6eb1331e44837
Author: Josh Geenen <joshgeenen at gmail.com>
Date: Mon Jan 6 18:11:04 2014 -0600
Fix for the 0.4.0rc1 upgrade code to remove the property type, not the property itself
---
src/content/synonyms.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/content/synonyms.js b/src/content/synonyms.js
index 3569d41..45fdf72 100644
--- a/src/content/synonyms.js
+++ b/src/content/synonyms.js
@@ -665,9 +665,9 @@ com.gContactSync.version04Upgrade = function gCS_version04Upgrade() {
}
// Remove types for untyped properties
for (var l = 0, untypedPropLen = untypedProperties.length; l < untypedPropLen; ++l) {
- if (contact.getValue(untypedProperties[l])) {
+ if (contact.getValue(untypedProperties[l] + "Type")) {
needsUpdate = true;
- contact.setValue(untypedProperties[l], null);
+ contact.setValue(untypedProperties[l] + "Type", null);
}
}
if (needsUpdate) {contact.update();}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/gcontactsync.git
More information about the Pkg-mozext-commits
mailing list