Commit e9cd6fec authored by Mingsong Hu's avatar Mingsong Hu

Use view row index as calendar entry id instead of entity id

parent bc20e378
......@@ -86,7 +86,7 @@
drupalSettings.path.baseUrl +
"fullcalendar-view-event-update",
{
eid: info.event.id,
eid: info.event.extendedProps.eid,
entity_type: viewSettings.entityType,
start: strStart,
end: strEnd,
......@@ -216,7 +216,7 @@
drupalSettings.path.baseUrl +
"fullcalendar-view-event-update",
{
eid: info.event.id,
eid: info.event.extendedProps.eid,
entity_type: viewSettings.entityType,
start: strStart,
end: strEnd,
......
......@@ -180,7 +180,8 @@ class FullcalendarViewPreprocess {
foreach ($start_dates as $i => $start_date) {
$entry = [
'title' => Xss::filterAdmin($title),
'id' => $entity_id,
'id' => $row->index,
'eid' => $entity_id,
'url' => $link_url,
];
// Event duration.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment