Open mikantchap opened 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 } })
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).
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