Skip to content
Snippets Groups Projects
Unverified Commit 5d417b21 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

webhook: fix getJson instead of getBaseJson

parent f71a0d44
No related branches found
No related tags found
No related merge requests found
......@@ -112,10 +112,9 @@ class WebhookService
// STANDRD CONTIRBUTION
if ($contribution->getElement()) {
$element = $contribution->getElement();
$this->dm->refresh($element);
$element->setPreventJsonUpdate(true);
$link = str_replace('%23', '#', $this->router->generate('gogo_directory_showElement', ['id' => $element->getId()], true));
$data = json_decode($element->getBaseJson(), true);
$data = json_decode($element->getJson(), true);
}
// BATCH CONTRIBUTION
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment