bug 3243: pcard-members-search fails to add patrons to batch after using some links
authorMJ Ray <mjr@phonecoop.coop>
Thu, 21 May 2009 14:27:19 +0000 (15:27 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 13:57:04 +0000 (08:57 -0500)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl
labels/pcard-member-search.pl

index 1842219..7fe2c23 100644 (file)
@@ -101,10 +101,10 @@ function add_item3(borrowernumber){
     <table style="float: left; margin: .5em 0;">
     <tr>
     <th><label for="patron<!-- TMPL_VAR NAME="borrowernumber" -->" style="font-weight:bold;">Select</label></th>
-    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;orderby=cardnumber">Card</a></th>
-    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;orderby=surname">Name</a></th>
-    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;orderby=borrowers.categorycode">Category</a></th>
-    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;orderby=branchcode">Library</a></th>
+    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;category=<!--TMPL_VAR Name="category_type" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;orderby=cardnumber">Card</a></th>
+    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;category=<!--TMPL_VAR Name="category_type" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;orderby=surname">Name</a></th>
+    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;category=<!--TMPL_VAR Name="category_type" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;orderby=borrowers.categorycode">Category</a></th>
+    <th><a href="pcard-member-search.pl?member=<!--TMPL_VAR Name="member" -->&amp;category=<!--TMPL_VAR Name="category_type" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;orderby=branchcode">Library</a></th>
     <th>Expires on</th>
     <th>Notes</th>
     <th></th>
index 8f074ff..5620a54 100755 (executable)
@@ -156,6 +156,7 @@ $template->param(
 $template->param( 
         searching       => "1",
         member          => $member,
+        category_type   => $category,
         numresults      => $count,
         resultsloop     => \@resultsdata,
         batch_id        => $batch_id,