LP#1723498: fix display of count of duplicate patrons
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 10 Nov 2017 21:43:29 +0000 (16:43 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 10 Nov 2017 21:43:29 +0000 (16:43 -0500)
This patch fixes an issue where the patron registration
form's alert for duplicate phone numbers did not display
the count of matching records. (This was caused by code
that was expecting a string to be passed by reference
when it's passed by value in JavaScript).

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2

index ce365ab..f93fbfa 100644 (file)
       <a target="_blank" 
         href="/eg/staff/circ/patron/search?search={{dupe_search_encoded.day_phone}}">
         [% l('[_1] patron(s) with same phone', 
-        '{{dupe_counts.phone}}') %]</a>
+        '{{dupe_counts.day_phone}}') %]</a>
     </div>
     <div class="alert alert-danger" ng-show="dupe_counts.evening_phone">
       <a target="_blank" 
         href="/eg/staff/circ/patron/search?search={{dupe_search_encoded.evening_phone}}">
         [% l('[_1] patron(s) with same phone', 
-        '{{dupe_counts.phone}}') %]</a>
+        '{{dupe_counts.evening_phone}}') %]</a>
     </div>
     <div class="alert alert-danger" ng-show="dupe_counts.other_phone">
       <a target="_blank" 
         href="/eg/staff/circ/patron/search?search={{dupe_search_encoded.other_phone}}">
         [% l('[_1] patron(s) with same phone', 
-        '{{dupe_counts.phone}}') %]</a>
+        '{{dupe_counts.other_phone}}') %]</a>
     </div>
     <div class="alert alert-danger" ng-show="dupe_counts.address">
       <a target="_blank"