Fix save address for new attendees
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 29 Dec 2017 15:24:42 +0000 (10:24 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 29 Dec 2017 15:25:35 +0000 (10:25 -0500)
Setup the storing of the address for the new attendee.

js/frontRegApp.js
js/views/front/regRequestRegistrant.js
models/admin/ajax/regFront/registrant.php
models/admin/registrations/events.php

index 9da2479..b6670e3 100644 (file)
@@ -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;
     },
 
index 3a4f1e6..d3dc7d7 100644 (file)
@@ -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;
     },
 
index 51b6cb6..1cad1d0 100644 (file)
@@ -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'
index 68b807e..4b99b92 100644 (file)
@@ -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 ';