Replies: 3 comments
-
🚨 Bot is not sure about this answer. Please verify. 🚨 Based on the information provided in the knowledge sources, I don't have enough specific details to fully explain the inconsistency you're experiencing with the The protected function getCalendarFieldsMap(): array
{
return [
'title' => 'title',
'start' => 'start',
'end' => 'end',
'background_color' => 'background_color',
'text_color' => 'text_color',
'all_day' => 'all_day',
// You can add additional fields here
];
} The inconsistency you're experiencing with Your solution of explicitly adding let eventData = {
// ... other properties ...
extendedProps: {
...extra,
},
}; This ensures that all additional properties are included in the To further investigate and potentially resolve this issue, you could:
If the problem persists after trying these steps, I recommend opening a discussion in the Backpack community forum as suggested in the Support section of the documentation. The Backpack team or community members might be able to provide more specific guidance on this issue. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [Bug] Issues on "backpack/calendar-operation" |
Beta Was this translation helpful? Give feedback.
-
Hello @tomsb Can you share with me the migration and model to replicate the problem on my side. Can you please share versions too:
Thanks. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Suddenly, I can no longer reproduce this behaviour. I performed some updates and can't easily revert back. It seems I misunderstood how everything fits together. Here's what I wanted to achieve: adding a custom value to the
However, this didn't work as expected. It turns out that I also need to add the same custom field in the This detail might be worth adding to the calendar documentation. Should we close this issue? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
extendedProps
typically contains additional event data, but it does not always include all the fields defined ingetCalendarFieldsMap()
. For example, I have the following fields ingetCalendarFieldsMap()
:The
module_number
field appeared inevent.extendedProps
(when I clicked on the event), butpk
did not. I am unsure whypk
was missing initially. However, after I explicitly addedextendedProps
in theeventData
, thepk
field appeared inextendedProps
.This behavior is strange. I did not investigate further to understand why this inconsistency occurred.
File: calendar_view.blade.php (From line 269)
Beta Was this translation helpful? Give feedback.
All reactions