compucorp / civibooking

CiviBooking is a CiviCRM extension defining a resource booking application that runs on top of the CiviCRM platform.
Other
19 stars 44 forks source link

Cannot save new booking #186

Open mikantchap opened 4 years ago

mikantchap commented 4 years ago

lodash.templateSources[2]:17 Uncaught TypeError: moment(...).strftime is not a function at eval (lodash.templateSources[2]:17) at updateBasketTable (SelectResource.js?r=22zBz:417) at HTMLInputElement. (SelectResource.js?r=22zBz:325) at HTMLDocument.dispatch (jquery.js?r=22zBz:5227) at HTMLDocument.elemData.handle (jquery.js?r=22zBz:4879)

CiviCRM 5.19.4. Wordpress Version 5.3.2 PHP 7.1

mikantchap commented 4 years ago

(function anonymous(_ ) { //# sourceURL=lodash.templateSources[2] return function(obj) { obj || (obj = {}); var t, p = ''; with (obj) { p += '\n <tr data-eid="' + ((t = ( data.id )) == null ? '' : t) + '" data-rid="' + ((t = ( data.resource_id )) == null ? '' : t) + '" data-update="' + ((t = ( data.is_updated )) == null ? '' : t) + '" >\n ' + ((t = ( data.label )) == null ? '' : t) + '\n ' + ((t = ( moment(data.start_date, "YYYY-M-D HH:mm").strftime(crmDateFormat) )) == null ? '' : t) + '\n ' + ((t = ( moment(data.end_date, "YYYY-M-D HH:mm").strftime(crmDateFormat) )) == null ? '' : t) + '\n ' + ((t = ( data.quantity_display )) == null ? '' : t) + '\n £' + ((t = ( data.price )) == null ? '' : t) + '\n <input type="button" data-eid="' + ((t = ( data.id )) == null ? '' : __t) + '" class="remove-from-basket-btn" value="Remove from basket" name="button" >\n \n ';

} return __p } })

mikantchap commented 4 years ago

This is now looking like the CiviBooking extension doesn't work with the Caldera Forms plugin version 1.8.10 (version 1.8.9 is OK though).