Skip to content
Snippets Groups Projects
Commit 9585e630 authored by Aaron Bohy's avatar Aaron Bohy
Browse files

[FIX] board: open kanban card from dashboard

The Kanban view has been refactored recently, and the communication mechanism
between the view and its cards changed. The cards now communicate with the
view by triggering_up custom events.

The code in dashboard overrides the function open_record of the Kanban view to
allowing opening a record by clicking on a card directly from the dashboard.
Unfortunately, this code hasn't been adapted after the Kanban refactoring.
parent e47d4c61
No related branches found
No related tags found
No related merge requests found
......@@ -256,8 +256,8 @@ var DashBoard = form_common.FormWidget.extend({
var kanban = am.inner_widget.views.kanban;
if (kanban) {
kanban.created.done(function() {
kanban.controller.open_record = function(id, editable) {
new_form_action(id, editable);
kanban.controller.open_record = function(event, editable) {
new_form_action(event.data.id, editable);
};
});
}
......
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