From f384c3b7edb1f38b9241b67c77e836d210dbc041 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Tue, 2 Jan 2018 19:28:21 +0000 Subject: [PATCH] Fixes #59. --- js/shop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/shop.js b/js/shop.js index 246684a..8c51a8f 100644 --- a/js/shop.js +++ b/js/shop.js @@ -99,7 +99,7 @@ $(function(){ var id = this.id; - if (last_index <= 1) { + if (last_index < 1) { membership_ids = "contact_id=" + id; } else if (!membership_ids) { @@ -112,6 +112,7 @@ $(function(){ } }); + if (membership_ids) { volunteer_ids = membership_ids.replace(/contact_id/g,"contacts.contact_id");