From bd28366523c0778f496a310395f4481348e30ccf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 30 Oct 2010 01:52:49 -0400 Subject: [PATCH] Fix for Bug 4980 - Acq: pull down 'Restrict access to:' for funds not translatable Applied Owen's patch to current head, updated de-DE translation. The pull down values are now translated. Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- admin/aqbudgets.pl | 9 +++++---- .../intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl | 6 +++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index 95f5f26291..34a4021be1 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -184,16 +184,17 @@ if ($op eq 'add_form') { $template->param(authorised_value_categories1 => \@auth_cats_loop1); $template->param(authorised_value_categories2 => \@auth_cats_loop2); - my $budget_perm_dropbox = - GetBudgetPermDropbox($budget->{'budget_permission'}); - + if($budget->{'budget_permission'}){ + my $budget_permission = "budget_perm_".$budget->{'budget_permission'}; + $template->param($budget_permission => 1); + } + # if no buget_id is passed then its an add $template->param( add_validate => 1, dateformat => C4::Dates->new()->visual(), budget_parent_id => $budget_parent->{'budget_id'}, budget_parent_name => $budget_parent->{'budget_name'}, - budget_perm_dropbox => $budget_perm_dropbox, branchloop_select => \@branchloop_select, %$period, %$budget, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl index 9e8cf8507e..5e0db00292 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl @@ -315,7 +315,11 @@
  • - +