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

(-)a/C4/Budgets.pm (-4 / +4 lines)
Lines 400-410 sub GetAuthvalueDropbox { Link Here
400
400
401
    my $option_list = [];
401
    my $option_list = [];
402
    my @authorised_values = ( q{} );
402
    my @authorised_values = ( q{} );
403
    while (my ($value, $lib) = $sth->fetchrow_array) {
403
    while (my $av = $sth->fetchrow_hashref) {
404
        push @{$option_list}, {
404
        push @{$option_list}, {
405
            value => $value,
405
            value => $av->{authorised_value},
406
            label => $lib,
406
            label => $av->{lib},
407
            default => ($default eq $value),
407
            default => ($default eq $av->{authorised_value}),
408
        };
408
        };
409
    }
409
    }
410
410
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-1 / +6 lines)
Lines 274-280 Link Here
274
            [% FOREACH branch IN loo.branches %]
274
            [% FOREACH branch IN loo.branches %]
275
                [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
275
                [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
276
            [% END %]
276
            [% END %]
277
            <span href="#" title="[% branches_str %]">[% loo.branches.size %] branches limitations</span>
277
            <span href="#" title="[% branches_str %]">
278
                [% IF loo.branches.size > 1 %]
279
                    [% loo.branches.size %] branches limitations
280
                [% ELSE %]
281
                    [% loo.branches.size %] branch limitation
282
                [% END %]
278
        [% ELSE %]
283
        [% ELSE %]
279
            No limitation
284
            No limitation
280
        [% END %]
285
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt (-1 / +7 lines)
Lines 371-377 Confirm deletion of category [% categorycode |html %][% END %]</legend> Link Here
371
                                [% FOREACH branch IN loo.branches %]
371
                                [% FOREACH branch IN loo.branches %]
372
                                    [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
372
                                    [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
373
                                [% END %]
373
                                [% END %]
374
                                <span title="[% branches_str %]">[% loo.branches.size %] branches limitations</span>
374
                                <span title="[% branches_str %]">
375
                                    [% IF loo.branches.size > 1 %]
376
                                        [% loo.branches.size %] branches limitations
377
                                    [% ELSE %]
378
                                        [% loo.branches.size %] branch limitation
379
                                    [% END %]
380
                                </span>
375
                            [% ELSE %]
381
                            [% ELSE %]
376
                                No limitation
382
                                No limitation
377
                            [% END %]
383
                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-3 / +8 lines)
Lines 315-326 function CheckAttributeTypeForm(f) { Link Here
315
            <td>[% item.code |html %]</td>
315
            <td>[% item.code |html %]</td>
316
            <td>[% item.description %]</td>
316
            <td>[% item.description %]</td>
317
            <td>
317
            <td>
318
                [% IF item.branches > 0 %]
318
                [% IF item.branches.size > 0 %]
319
                    [% branches_str = "" %]
319
                    [% branches_str = "" %]
320
                    [% FOREACH branch IN item.branches %]
320
                    [% FOREACH branch IN item.branches %]
321
                        [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
321
                        [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
322
                    [% END %]
322
                    [% END %]
323
                    <span title="[% branches_str %]">[% item.branches.size %] branches limitations</span>
323
                    <span title="[% branches_str %]">
324
                        [% IF item.branches.size > 1 %]
325
                            [% item.branches.size %] branches limitations
326
                        [% ELSE %]
327
                            [% item.branches.size %] branch limitation
328
                        [% END %]
329
                    </span>
324
                [% ELSE %]
330
                [% ELSE %]
325
                    No limitation
331
                    No limitation
326
                [% END %]
332
                [% END %]
327
- 

Return to bug 7919