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

(-)a/admin/aqbudgets.pl (+2 lines)
Lines 115-120 if ($op eq 'add_form') { Link Here
115
        }
115
        }
116
        $dropbox_disabled = BudgetHasChildren($budget_id);
116
        $dropbox_disabled = BudgetHasChildren($budget_id);
117
        $budget->{budget_owner} = Koha::Patrons->find( $budget->{budget_owner_id} );
117
        $budget->{budget_owner} = Koha::Patrons->find( $budget->{budget_owner_id} );
118
    } elsif ( $period->{budget_period_locked} ) {
119
        output_and_exit( $input, $cookie, $template, 'budget_is_locked' );
118
    }
120
    }
119
121
120
    # build budget hierarchy
122
    # build budget hierarchy
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc (+2 lines)
Lines 13-18 Link Here
13
        <div class="dialog message">Basket not found.</div>
13
        <div class="dialog message">Basket not found.</div>
14
    [% CASE 'wrong_csrf_token' %]
14
    [% CASE 'wrong_csrf_token' %]
15
        <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
15
        <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
16
    [% CASE 'budget_is_locked' %]
17
        <div class="dialog message">The budget is locked, fund creation is not possible.</div>
16
    [% CASE %][% blocking_error | html %]
18
    [% CASE %][% blocking_error | html %]
17
    [% END %]
19
    [% END %]
18
20
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc (-2 / +4 lines)
Lines 7-16 Link Here
7
                    <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li>
7
                    <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li>
8
                    [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %]
8
                    [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %]
9
                        <li class="disabled">
9
                        <li class="disabled">
10
                            <a data-toggle="tooltip" data-placement="left" title="The budget is locked" href="#">New fund for [% budget_period_description | html %]</a>
11
                        </li>
10
                    [% ELSE %]
12
                    [% ELSE %]
11
                        <li>
13
                        <li>
14
                            <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_period_id=[% budget_period_id | uri %]">New fund for [% budget_period_description | html %]</a>
15
                        </li>
12
                    [% END %]
16
                    [% END %]
13
                    <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_period_id=[% budget_period_id | uri %]">New fund for [% budget_period_description | html %]</a></li>
14
                </ul>
17
                </ul>
15
        </div>
18
        </div>
16
19
17
- 

Return to bug 22786