Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 09d22d2

Browse files
committed
443: Fix issue where onlineSessions was being set to null
- because it didn't exist in the Dojo Lead JSON - front end checkbox doesn't set the value and validation of the field didn't seem to happen?
1 parent cbb85f0 commit 09d22d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controllers/lead/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = function (args, done) {
157157
// Unpack locality info into the root structure of the dojo
158158
if (lead.application.venue) {
159159
dojoApplication.private = lead.application.venue.private;
160-
dojoApplication.onlineSessions = lead.application.venue.onlineSessions;
160+
dojoApplication.onlineSessions = lead.application.venue.onlineSessions == 1 ? 1 : 0;
161161
if (lead.application.venue.geoPoint) dojoApplication.geoPoint = lead.application.venue.geoPoint;
162162
if (lead.application.venue.state) dojoApplication.state = lead.application.venue.state;
163163
if (lead.application.venue.country) dojoApplication.country = lead.application.venue.country;

0 commit comments

Comments
 (0)