[web/calendar] fix regression in previous changeset
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 15 Mar 2016 14:30:21 +0100
changeset 11188 744e57d74f6d
parent 11187 5213dfe9cddb
child 11189 3a39f145d530
[web/calendar] fix regression in previous changeset "Enables css customization in CalendarView" was untested, and introduced a crash: TypeError: not all arguments converted during string formatting
cubicweb/web/views/calendar.py
--- a/cubicweb/web/views/calendar.py	Mon Mar 17 15:21:47 2014 +0100
+++ b/cubicweb/web/views/calendar.py	Tue Mar 15 14:30:21 2016 +0100
@@ -193,7 +193,7 @@
         if cssclass:
             self.w(u'<div class="%s" id="%s"></div>' % (cssclass, self.calendar_id))
         else:
-            self.w(u'<div id="%s"></div>' % (cssclass, self.calendar_id))
+            self.w(u'<div id="%s"></div>' % self.calendar_id)
 
     def add_onload(self):
         fullcalendar_options = self.fullcalendar_options.copy()