From 7ff5a54dabdd7b1b1c8a5f67146b5bc10e76bb00 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 29 Dec 2017 10:24:42 -0500 Subject: [PATCH] Fix save address for new attendees Setup the storing of the address for the new attendee. --- js/frontRegApp.js | 4 ++-- js/views/front/regRequestRegistrant.js | 4 ++-- models/admin/ajax/regFront/registrant.php | 6 ++++++ models/admin/registrations/events.php | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/js/frontRegApp.js b/js/frontRegApp.js index 9da2479..b6670e3 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -753,7 +753,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({ // used to setup initial class initialize: function(){ - // this.listenTo( this.model, 'change', this.render ); + this.listenTo( this.model, 'change', this.render ); this.listenTo( this.model, 'change:customFields', this.resetCustomFields ); return this; @@ -823,7 +823,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({ // console.log( this.model.validationError ); } - // this.$('.reg-edit-form').hide(); + this.$('.reg-edit-form').hide(); app.regEventLock = false; }, diff --git a/js/views/front/regRequestRegistrant.js b/js/views/front/regRequestRegistrant.js index 3a4f1e6..d3dc7d7 100644 --- a/js/views/front/regRequestRegistrant.js +++ b/js/views/front/regRequestRegistrant.js @@ -7,7 +7,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({ // used to setup initial class initialize: function(){ - // this.listenTo( this.model, 'change', this.render ); + this.listenTo( this.model, 'change', this.render ); this.listenTo( this.model, 'change:customFields', this.resetCustomFields ); return this; @@ -77,7 +77,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({ // console.log( this.model.validationError ); } - // this.$('.reg-edit-form').hide(); + this.$('.reg-edit-form').hide(); app.regEventLock = false; }, diff --git a/models/admin/ajax/regFront/registrant.php b/models/admin/ajax/regFront/registrant.php index 51b6cb6..1cad1d0 100644 --- a/models/admin/ajax/regFront/registrant.php +++ b/models/admin/ajax/regFront/registrant.php @@ -344,6 +344,12 @@ class GlmMembersAdmin_registrations_ajax_registrant extends GlmDataRegistrations 'fname' => $modelData['fname'], 'lname' => $modelData['lname'], 'email' => $modelData['email'], + 'addr1' => $modelData['addr1'], + 'addr2' => $modelData['addr2'], + 'city' => $modelData['city'], + 'state' => $modelData['state'], + 'zip' => $modelData['zip'], + 'country' => $modelData['country'], 'date_created' => date('Y-m-d'), ), '%s' diff --git a/models/admin/registrations/events.php b/models/admin/registrations/events.php index 68b807e..4b99b92 100644 --- a/models/admin/registrations/events.php +++ b/models/admin/registrations/events.php @@ -87,7 +87,7 @@ class GlmMembersAdmin_registrations_events extends GlmDataRegistrationsRegEvent $prevStart = false; $nextStart = false; $start = 1; - $limit = 5; // Set to the number of listings per page + $limit = 20; // Set to the number of listings per page $registrantCount = 0; $textSearch = false; $where = ' TRUE '; -- 2.17.1