Skip to content

Commit

Permalink
Setting correct property group on VCard conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ahackschmitz committed Aug 13, 2013
1 parent 698c574 commit 0b44e0c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.1.2-stable (2013-08-13)
* Fixed: Setting correct property group on VCard conversion

3.1.1-stable (2013-08-02)
* Fixed: Issue #53. A regression in RecurrenceIterator.

Expand Down
2 changes: 2 additions & 0 deletions lib/Sabre/VObject/VCardConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ protected function convertProperty(Component\VCard $input, Component\VCard $outp

}

// set property group
$newProperty->group = $property->group;

if ($targetVersion===Document::VCARD40) {
$this->convertParameters40($newProperty, $parameters);
Expand Down
2 changes: 1 addition & 1 deletion lib/Sabre/VObject/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class Version {
/**
* Full version number
*/
const VERSION = '3.1.1';
const VERSION = '3.1.2';

}
4 changes: 4 additions & 0 deletions tests/Sabre/VObject/VCardConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ function testConvert30to40() {
PRODID:foo
FN;CHARSET=UTF-8:Steve
TEL;TYPE=PREF,HOME:+1 555 666 777
ITEM1.TEL:+1 444 555 666
ITEM1.X-ABLABEL:CustomLabel
PHOTO;ENCODING=b;TYPE=JPEG,HOME:Zm9v
PHOTO;ENCODING=b;TYPE=GIF:Zm9v
PHOTO;X-PARAM=FOO;ENCODING=b;TYPE=PNG:Zm9v
Expand All @@ -29,6 +31,8 @@ function testConvert30to40() {
PRODID:-//Sabre//Sabre VObject {$version}//EN
FN:Steve
TEL;PREF=1;TYPE=HOME:+1 555 666 777
ITEM1.TEL:+1 444 555 666
ITEM1.X-ABLABEL:CustomLabel
PHOTO;TYPE=HOME:data:image/jpeg;base64,Zm9v
PHOTO:data:image/gif;base64,Zm9v
PHOTO;X-PARAM=FOO:data:image/png;base64,Zm9v
Expand Down

0 comments on commit 0b44e0c

Please sign in to comment.