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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +2 lines)
Lines 845-853 Link Here
845
                                                    </td>
845
                                                    </td>
846
                                                    <td class="actions">
846
                                                    <td class="actions">
847
                                                        <div class="btn-group dropup">
847
                                                        <div class="btn-group dropup">
848
                                                            <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&amp;op=edit"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
848
                                                            <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% s.suggestionid | html %]&amp;csrf_token=[% csrf_token | html %]&amp;op=edit"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% s.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a>
849
                                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">
849
                                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% s.suggestionid | html %]">
850
                                                                <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% s.suggestionid | html %]"><i class="fa fa-trash-can"></i> Delete</a></li>
850
                                                                <li><a class="deletesuggestion" href="suggestion.pl?op=delete&amp;suggestionid=[% s.suggestionid | html %]"&amp;csrf_token=[% csrf_token | html %]><i class="fa fa-trash-can"></i> Delete</a></li>
851
                                                                [% UNLESS s.archived %]
851
                                                                [% UNLESS s.archived %]
852
                                                                    <li><a class="archivesuggestion" href="suggestion.pl?op=archive&amp;suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li>
852
                                                                    <li><a class="archivesuggestion" href="suggestion.pl?op=archive&amp;suggestionid=[% s.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li>
853
                                                                [% ELSE %]
853
                                                                [% ELSE %]
(-)a/suggestion/suggestion.pl (-3 / +10 lines)
Lines 33-38 use Koha::Acquisition::Currencies; Link Here
33
use Koha::Libraries;
33
use Koha::Libraries;
34
use Koha::Patrons;
34
use Koha::Patrons;
35
use Koha::Suggestions;
35
use Koha::Suggestions;
36
use Koha::Token;
36
37
37
use URI::Escape qw( uri_escape );
38
use URI::Escape qw( uri_escape );
38
39
Lines 531-540 foreach my $field ( qw(managedby acceptedby suggestedby budgetid) ) { Link Here
531
    $hashlists{ lc($field) . "_loop" } = \@codes_list;
532
    $hashlists{ lc($field) . "_loop" } = \@codes_list;
532
}
533
}
533
534
535
my $csrf_token = Koha::Token->new->generate_csrf(
536
    {
537
        session_id => scalar $input->cookie('CGISESSID'),
538
    }
539
);
540
534
$template->param(
541
$template->param(
535
    %hashlists,
542
    %hashlists,
536
    borrowernumber           => ($input->param('borrowernumber') // undef),
543
    borrowernumber     => ( $input->param('borrowernumber') // undef ),
537
    SuggestionStatuses       => GetAuthorisedValues('SUGGEST_STATUS'),
544
    SuggestionStatuses => GetAuthorisedValues('SUGGEST_STATUS'),
545
    csrf_token         => $csrf_token,
538
);
546
);
539
output_html_with_http_headers $input, $cookie, $template->output;
547
output_html_with_http_headers $input, $cookie, $template->output;
540
548
541
- 

Return to bug 34601