[Koha-patches] [PATCH] Bug 6208 : Cant add funds to a budget
Chris Cormack
chrisc at catalyst.net.nz
Wed Apr 20 04:33:29 CEST 2011
---
admin/aqbudgets.pl | 4 +---
.../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 ed8d294..e34f2cc 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 fd5afd5..af6a238 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 @@
<!-- ********************************************************************************************** -->
<!-- create add/mod entry form -->
[% IF ( add_form ) %]
-
<form action="/cgi-bin/koha/admin/aqbudgets.pl" name="Aform" method="post">
<fieldset class="rows">
<legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund
--
1.5.6.5
More information about the Koha-patches
mailing list