Permalink
Browse files

Bug 6208 : Cant add funds to a budget

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
  • Loading branch information...
1 parent 1779c06 commit 26e7237046b89dd433ffe68b8a2ffe7acfbb4f1e @ranginui ranginui committed Apr 20, 2011
Showing with 2 additions and 5 deletions.
  1. +1 −3 admin/aqbudgets.pl
  2. +1 −2 koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt
View
@@ -64,10 +64,9 @@
$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 @@
# 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;
@@ -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

0 comments on commit 26e7237

Please sign in to comment.