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

(-)a/authorities/detail.pl (+2 lines)
Lines 50-55 use C4::Koha; Link Here
50
use Koha::Authorities;
50
use Koha::Authorities;
51
51
52
use Koha::Authority::Types;
52
use Koha::Authority::Types;
53
use Koha::Token;
53
54
54
our ($tagslib);
55
our ($tagslib);
55
56
Lines 219-224 $template->param( Link Here
219
    authtypetext    => $authority_types->find($authtypecode)->authtypetext,
220
    authtypetext    => $authority_types->find($authtypecode)->authtypetext,
220
    authtypecode    => $authtypecode,
221
    authtypecode    => $authtypecode,
221
    authority_types => $authority_types,
222
    authority_types => $authority_types,
223
    csrf_token      => Koha::Token->new->generate_csrf({ session_id => scalar $query->cookie('CGISESSID') }),
222
);
224
);
223
225
224
$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour");
226
$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-2 / +1 lines)
Lines 34-40 Link Here
34
function confirm_deletion() {
34
function confirm_deletion() {
35
    var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
35
    var is_confirmed = confirm(_("Are you sure you want to delete this authority?"));
36
    if (is_confirmed) {
36
    if (is_confirmed) {
37
        window.location="authorities-home.pl?op=delete&authid=[% authid %]";
37
        window.location="authorities-home.pl?op=delete&authid=[% authid %]&csrf_token=[% csrf_token %]";
38
    }
38
    }
39
}
39
}
40
function Dopop(link) {
40
function Dopop(link) {
41
- 

Return to bug 18019