diff --git a/factories/ContactFactory.php b/factories/ContactFactory.php index b0c8481..a44da1e 100644 --- a/factories/ContactFactory.php +++ b/factories/ContactFactory.php @@ -228,8 +228,9 @@ public static function create($name, $phoneNumber, $emailAddress, $note, $custom $entry->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:gd', 'http://schemas.google.com/g/2005'); $doc->appendChild($entry); - $title = $doc->createElement('title', $name); - $entry->appendChild($title); + $nameEntry = $doc->createElement('gd:name'); + $nameEntry->appendChild($doc->createElement('gd:givenName', $name)); + $entry->appendChild($nameEntry); $email = $doc->createElement('gd:email'); $email->setAttribute('rel', 'http://schemas.google.com/g/2005#work');