From 26e7237046b89dd433ffe68b8a2ffe7acfbb4f1e Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 20 Apr 2011 14:33:29 +1200 Subject: [PATCH] Bug 6208 : Cant add funds to a budget Signed-off-by: Chris Cormack --- admin/aqbudgets.pl | 4 +--- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index ed8d2948d4..e34f2cc7f8 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -64,10 +64,9 @@ my $show = $input->param('show'); # SET TO 1, BY A FORM SUMBIT $show_mine = $input->param('show_mine') if $show == 1; # IF USER DOESNT HAVE PERM FOR AN 'ADD', THEN REDIRECT TO THE DEFAULT VIEW... -if ( not defined $template->{param_map}->{'CAN_user_acquisition_budget_add_del'} && $op == 'add_form' ) { +if ( not defined $template->{VARS}->{'CAN_user_acquisition_budget_add_del'} && $op == 'add_form' ) { $op = ''; } - my $num=FormatNumber; my $script_name = "/cgi-bin/koha/admin/aqbudgets.pl"; @@ -123,7 +122,6 @@ $template->param(auth_cats_loop => GetBudgetAuthCats($$period{budget_period_id}) # Used to create form to add or modify a record if ($op eq 'add_form') { #### ------------------- ADD_FORM ------------------------- - # if no buget_id is passed then its an add # pass the period_id to build the dropbox - because we only want to show budgets from this period my $dropbox_disabled; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index fd5afd58cf..af6a238d2e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -10,7 +10,7 @@ var actTotal =""; function ownerRemove(f) { - document.getElementById('budget_owner_name').innerhtml = ''; + document.getElementById('budget_owner_name').innerHTML = ''; } function Check(f) { @@ -247,7 +247,6 @@ [% IF ( add_form ) %] -
[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund -- 2.39.5