From bbb0819f0f22b9387ddc209b7f0997c3b507b51d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 16 Nov 2010 18:43:43 -0500 Subject: [PATCH] Fix for Bug 5037 - If patron category is empty it shouldn't show Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- .../en/modules/members/memberentrygen.tmpl | 26 +++++++++++-------- members/memberentry.pl | 2 ++ 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl index 5fa4f82a28..806b43ce3f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -742,22 +742,26 @@ + + + + + + There is no category type to add an Adulta Childan Institutiona Professionala Staff Member. Please create one diff --git a/members/memberentry.pl b/members/memberentry.pl index c25f7c90de..fbd8538ae5 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -429,8 +429,10 @@ foreach (qw(C A S P I X)) { } my %typehash; $typehash{'typename'}=$_; + my $typedescription = "typename_".$typehash{'typename'}; $typehash{'categoryloop'}=\@categoryloop; push @typeloop,{'typename' => $_, + $typedescription => 1, 'categoryloop' => \@categoryloop}; } $template->param('typeloop' => \@typeloop); -- 2.39.5