View | Details | Raw Unified | Return to bug 24242
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +2 lines)
Lines 745-752 Link Here
745
                      [% ELSE %]
745
                      [% ELSE %]
746
                          <option value="__NONE__">None</option>
746
                          <option value="__NONE__">None</option>
747
                      [% END %]
747
                      [% END %]
748
                    [% FOREACH budgetid_loo IN budgetid_loop %]
748
                    [% FOREACH budgetsloo IN budgetsloop %]
749
                        [% IF ( budgetid_loo.selected ) %] <option value="[% budgetid_loo.code | html %]" selected="selected">[% budgetid_loo.desc | html %]</option>[% ELSE %]<option value="[% budgetid_loo.code | html %]">[% budgetid_loo.desc | html %]</option>[% END %]
749
                        [% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option>[% END %]
750
                        [% END %]
750
                        [% END %]
751
                    </select></li>
751
                    </select></li>
752
                    <li><label for="branchcode">Library:</label>
752
                    <li><label for="branchcode">Library:</label>
(-)a/suggestion/suggestion.pl (-9 / +1 lines)
Lines 351-364 my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG"); Link Here
351
$template->param(patron_reason_loop=>$patron_reason_loop);
351
$template->param(patron_reason_loop=>$patron_reason_loop);
352
352
353
#Budgets management
353
#Budgets management
354
my $budgets = [];
354
my $budgets = GetBudgets;
355
if ($branchfilter) {
356
    my $searchbudgets = { budget_branchcode => $branchfilter };
357
    $budgets = GetBudgets($searchbudgets);
358
} else {
359
    $budgets = GetBudgets(undef);
360
}
361
362
my @budgets_loop;
355
my @budgets_loop;
363
foreach my $budget ( @{$budgets} ) {
356
foreach my $budget ( @{$budgets} ) {
364
    next unless (CanUserUseBudget($borrowernumber, $budget, $userflags));
357
    next unless (CanUserUseBudget($borrowernumber, $budget, $userflags));
365
- 

Return to bug 24242