update for the attendee delete
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 26 Sep 2018 16:52:01 +0000 (12:52 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 26 Sep 2018 16:52:01 +0000 (12:52 -0400)
Need to pass in the reg_request so it can check the cart status.

js/frontRegApp.js
js/views/front/regRequestRegistrant.js

index 9a081c9..d941621 100644 (file)
@@ -888,6 +888,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({
         var modelId = this.model.get('id');
         this.model.destroy({data: {
             id: modelId,
+            reg_request: this.model.get('reg_request'),
             option: 'delete'
         }, processData: true});
 
index d4950b2..37217fd 100644 (file)
@@ -142,6 +142,7 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({
         var modelId = this.model.get('id');
         this.model.destroy({data: {
             id: modelId,
+            reg_request: this.model.get('reg_request'),
             option: 'delete'
         }, processData: true});