fasterit / roundcube_calendar

A functional version of Kolab's roundcube plugin with CalDAV forked from https://gitlab.awesome-it.de/kolab/roundcube-plugins/tree/feature_caldav
GNU Affero General Public License v3.0
19 stars 21 forks source link

JS Error during calendar adding #5

Open ajaxovic opened 8 years ago

ajaxovic commented 8 years ago

When you enable plugin, you can't add new calendar, because parameter "driver" is not passed into props attribute of button command. JS expect json there and got empty string => crash. So, I found function which add this props (calendar_ui.php, method calendar_create_menu), but this method is never called during render. If I uderstand it right, reason is that in template, you used roundcube:button, not roundcube:object. And here, I got stuck because I don't know roundcube. For a hot-fix, I filed props with json manually and it works. Maybe you know what to do...