Bug 6208 : Cant add funds to a budget

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Chris Cormack 2011-04-20 14:33:29 +12:00
parent 1779c06164
commit 26e7237046
2 changed files with 2 additions and 5 deletions

View file

@ -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; $show_mine = $input->param('show_mine') if $show == 1;
# IF USER DOESNT HAVE PERM FOR AN 'ADD', THEN REDIRECT TO THE DEFAULT VIEW... # 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 = ''; $op = '';
} }
my $num=FormatNumber; my $num=FormatNumber;
my $script_name = "/cgi-bin/koha/admin/aqbudgets.pl"; 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 # Used to create form to add or modify a record
if ($op eq 'add_form') { if ($op eq 'add_form') {
#### ------------------- ADD_FORM ------------------------- #### ------------------- ADD_FORM -------------------------
# if no buget_id is passed then its an add # 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 # pass the period_id to build the dropbox - because we only want to show budgets from this period
my $dropbox_disabled; my $dropbox_disabled;

View file

@ -10,7 +10,7 @@
var actTotal =""; var actTotal ="";
function ownerRemove(f) { function ownerRemove(f) {
document.getElementById('budget_owner_name').innerhtml = ''; document.getElementById('budget_owner_name').innerHTML = '';
} }
function Check(f) { function Check(f) {
@ -247,7 +247,6 @@
<!-- ********************************************************************************************** --> <!-- ********************************************************************************************** -->
<!-- create add/mod entry form --> <!-- create add/mod entry form -->
[% IF ( add_form ) %] [% IF ( add_form ) %]
<form action="/cgi-bin/koha/admin/aqbudgets.pl" name="Aform" method="post"> <form action="/cgi-bin/koha/admin/aqbudgets.pl" name="Aform" method="post">
<fieldset class="rows"> <fieldset class="rows">
<legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund <legend>[% IF ( budget_id ) %]Modify[% ELSE %]Add[% END %] Fund