From 3be493fc62f1cc93277292dcb07ac7f62896e01d Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Fri, 18 May 2018 07:40:44 +0000 Subject: [PATCH] Fixes a bug with #35. * nulls work in mysql query which allows for unusual sitations to work --- js/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/transaction.js b/js/transaction.js index 0d8392a..e953bd7 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -165,7 +165,7 @@ $(function() { last_index = last_index - 1; $.each($("td a[href*='individual_history']"), function(index) { - if (this.href.match(/\d+$/)) { + if (this.href.match(/\d*$/)) { var id = this.href.match(/\d+$/); @@ -180,7 +180,7 @@ $(function() { volunteer_ids += "contacts.contact_id=" + id + " OR "; } } - + }); }