select event by event_hash instead of item_id

This commit is contained in:
Mario Vavti
2019-04-30 10:47:48 +02:00
parent 9cc1eff15c
commit 0b062d0b8a
5 changed files with 23 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ class Editpost extends \Zotlabs\Web\Controller {
}
if($itm[0]['resource_type'] === 'event' && $itm[0]['resource_id']) {
goaway(z_root() . '/cdav/calendar/' . $itm[0]['id']);
goaway(z_root() . '/cdav/calendar/' . $itm[0]['resource_id']);
//goaway(z_root() . '/events/' . $itm[0]['resource_id'] . '?expandform=1');
}