Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Cannot save new booking #186

Open
mikantchap opened this issue Feb 19, 2020 · 2 comments
Open

Cannot save new booking #186

mikantchap opened this issue Feb 19, 2020 · 2 comments

Comments

@mikantchap
Copy link

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
Copy link
Author

(function anonymous(_
) {
//# sourceURL=lodash.templateSources[2]
return function(obj) {
obj || (obj = {});
var __t, __p = '';
with (obj) {
__p += '\n \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 \n \n ';

}
return __p
}
})

@mikantchap
Copy link
Author

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant