[FIX] calendar: title undefined when double clicking event
Currently in calendar if you double click an event in the calendar view, it opens a dialog with the event title as undefined. This occurs, because the title is not correctly passed in the context. This commit adds the correct title to it, therefore fixing the error. task-2685472 Part-of: odoo/odoo#79654
This commit is contained in:
@@ -524,7 +524,10 @@ return AbstractRenderer.extend({
|
||||
|
||||
// On double click, edit the event
|
||||
element.on('dblclick', function () {
|
||||
self.trigger_up('edit_event', {id: event.id});
|
||||
self.trigger_up('edit_event', {
|
||||
id: event.id,
|
||||
title: event.extendedProps.record.display_name
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user