Bug Fixing : New Lists Nothing in categorycode
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 7 Oct 2009 15:14:33 +0000 (17:14 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 7 Oct 2009 15:14:33 +0000 (17:14 +0200)
Problem with New when PatronList categorycode

koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc
members/members-home.pl

index 8524929..e1b46a5 100644 (file)
@@ -23,7 +23,9 @@
 
                var newmenu = [
 <!--TMPL_IF Name="AddPatronLists_categorycode"-->
-<!--TMPL_LOOP Name="categories"-->{ text: "<!--TMPL_VAR Name="description"-->",  url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=<!--TMPL_VAR Name="categorycode"-->" },<!--/TMPL_LOOP-->
+<!--TMPL_LOOP Name="categoryloop"-->
+{ text: "<!--TMPL_VAR Name="description"-->",  url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;categorycode=<!--TMPL_VAR Name="categorycode"-->" },
+<!--/TMPL_LOOP-->
 <!--TMPL_ELSE-->
                        { text: _("Adult Patron"),  url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A" },
                        { text: _("Child Patron"),  url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=C" },
index 7a9beb5..6206f2c 100755 (executable)
@@ -58,10 +58,5 @@ $template->param(
 $template->param( 
         "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
             );
-if (C4::Context->preference("AddPatronLists")=~/code/){
-    my $categories=GetBorrowercategoryList;
-    $categories->[0]->{'first'}=1;
-    $template->param(categories=>$categories);  
-}  
 
 output_html_with_http_headers $query, $cookie, $template->output;