[FIX] web_calendar: Error when deleting an element from calendar view.
authorPedro M. Baeza <pedro.baeza@gmail.com>
Thu, 31 Jul 2014 16:40:36 +0000 (18:40 +0200)
committerPedro M. Baeza <pedro.baeza@gmail.com>
Thu, 31 Jul 2014 16:40:36 +0000 (18:40 +0200)
addons/web_calendar/static/src/js/calendar.js

index f2cc0f7..479c260 100644 (file)
@@ -542,7 +542,7 @@ instance.web_calendar.CalendarView = instance.web.View.extend({
         var self = this;
         var index = this.dataset.get_id_index(event_id);
         if (index !== null) {
-            this.dataset.unlink(this.dataset.ids[index]);
+            this.dataset.unlink([this.dataset.ids[index]]);
         }
     },
 });