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:
commit
d4320b2263
@ -635,7 +635,7 @@ class Database extends AbstractBackend {
|
|||||||
|
|
||||||
$this->setModifiedAddressBook($addressBookId);
|
$this->setModifiedAddressBook($addressBookId);
|
||||||
\OCP\Util::emitHook('OCA\Contacts', 'post_createContact',
|
\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;
|
return (string)$newid;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user