Migrated from Redmine #132 | Author: Sasha Verma Status: New | Priority: High, I’m very impatient | Created: 2018-03-26
Our booking site currently has only one service and one location set up, when a user books that service sometimes the default location isn’t set, instead we get “NULL” location. However, I’ve looked at our settings and the service has a location tied to it.
if i call this raw request i get:
{“id”:“826”,“record_date”:“2018-03-20 10:49:26”,“start_date”:“2018-03-20 13:30:00”,“end_date”:“2018-03-20 14:00:00”,“unit_id”:“1”,“text”:“Test User”,“client”:“Test User”,“unit”:“jfk20_1”,“unit_email”:“”,“event”:“Multi-Session Scanning Study”,“event_id”:“1”,“is_confirm”:“0”,“client_id”:““,“client_phone”:””,“client_email”:“****”,“offset”:“0”,“comment”:“”,“code”:“pcamxf92”,“location”:“1”}
(i have replaced sensitive data)
We went through the process of booking an appointment to the site and it was upon the getBookings request. After noting the error, we went ahead and fixed the issue to stop our application from throwing errors around using a null location value.
Hmm, that doesn’t work though. If we are booking a service and it has a default location, there shouldn’t be a @null@ value. We need location for understanding where our services are booked.