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

(-)a/Koha/Illrequest.pm (+2 lines)
Lines 494-499 sub _core_status_graph { Link Here
494
            id             => 'CHK',
494
            id             => 'CHK',
495
            name           => 'Checked out',
495
            name           => 'Checked out',
496
            ui_method_name => 'Check out',
496
            ui_method_name => 'Check out',
497
            needs_prefs    => [ 'CirculateILL' ],
498
            needs_perms    => [ 'user_circulate_circulate_remaining_permissions' ],
497
            method         => 'check_out',
499
            method         => 'check_out',
498
            next_actions   => [ ],
500
            next_actions   => [ ],
499
            ui_method_icon => 'fa-upload',
501
            ui_method_icon => 'fa-upload',
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-1 / +16 lines)
Lines 439-444 Link Here
439
                        Edit request
439
                        Edit request
440
                        </a>
440
                        </a>
441
                        [% FOREACH action IN request.available_actions %]
441
                        [% FOREACH action IN request.available_actions %]
442
                            [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
443
                            [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
444
                            [% has_prefs_count = 0 %]
445
                            [% has_perms_count = 0 %]
446
                            [% FOREACH pref IN needs_prefs %]
447
                                [% IF Koha.Preference(pref) %]
448
                                    [% has_prefs_count = has_prefs_count + 1 %]
449
                                [% END %]
450
                            [% END %]
451
                            [% FOREACH perm IN needs_perms %]
452
                                [% perm_name = 'CAN_' _ perm %]
453
                                [% IF ($perm_name) %]
454
                                    [% has_perms_count = has_perms_count + 1 %]
455
                                [% END %]
456
                            [% END %]
457
                            [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size %]
442
                            [% IF action.method == 'migrate' %]
458
                            [% IF action.method == 'migrate' %]
443
                                [% IF backends.size > 2 %]
459
                                [% IF backends.size > 2 %]
444
                                    <div class="dropdown btn-group">
460
                                    <div class="dropdown btn-group">
445
- 

Return to bug 23112