Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31253 from albertopq/1178241-backout
Browse files Browse the repository at this point in the history
Revert "Bug 1178241 - [vCard] 'undefined' is displayed when a field exist but there's no value in it r=borjasalguero"
  • Loading branch information
albertopq committed Aug 5, 2015
2 parents 283e40f + 5afb1cf commit b57e9a0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions apps/communications/contacts/test/unit/vcard_parsing_test.js
Expand Up @@ -671,16 +671,5 @@ suite('vCard parsing settings', function() {
});
});
});
test('- vcard with fields with empty values', function(done) {
initializeVCFReader('vcard_undefined.vcf', function(reader) {
reader.onread = stub();
reader.onimported = stub();
reader.onerror = stub();
reader.process(function(result) {
sinon.assert.length(result, 1);
sinon.assert.length(result[0].org, 0);
});
});
});
});
});

This file was deleted.

4 changes: 0 additions & 4 deletions shared/js/contacts/import/utilities/vcard_parser.js
Expand Up @@ -472,10 +472,6 @@ var VCFReader = (function _VCFReader() {

var v = vcardObj[field][0];

if (!v || !Array.isArray(v.value) || v.value.length === 0) {
return;
}

var dateValue;
if (field === 'bday') {
dateValue = v.value[0];
Expand Down

0 comments on commit b57e9a0

Please sign in to comment.