1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Merge pull request #1134 from gvde/fix-create-hook

pass addressBookId as addressBookId, not parent
This commit is contained in:
Thomas Müller 2016-02-01 16:25:47 +01:00
commit d4320b2263

View File

@ -635,7 +635,7 @@ class Database extends AbstractBackend {
$this->setModifiedAddressBook($addressBookId);
\OCP\Util::emitHook('OCA\Contacts', 'post_createContact',
array('id' => $newid, 'parent' => $addressBookId, 'backend' => $this->name, 'contact' => $contact)
array('id' => $newid, 'addressBookId' => $addressBookId, 'backend' => $this->name, 'contact' => $contact)
);
return (string)$newid;
}