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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt (-1 lines)
Lines 39-45 Link Here
39
    [%~ public      = public | html ~%]
39
    [%~ public      = public | html ~%]
40
    [%~ IF can_manage_shelf ~%]
40
    [%~ IF can_manage_shelf ~%]
41
        [%~ action_block =                '<form action="shelves.pl" method="get">' ~%]
41
        [%~ action_block =                '<form action="shelves.pl" method="get">' ~%]
42
        [%~ action_block = BLOCK ~%][%~ action_block | $raw ~%][%~ INCLUDE 'csrf-token.inc' | trim ~%][%~ END ~%]
43
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
42
        [%~ action_block = action_block _ '<input type="hidden" name="shelfnumber" value="' _ shelfnumber  _ '" />' ~%]
44
        [%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%]
43
        [%~ action_block = action_block _ '<input type="hidden" name="op" value="edit_form" />' ~%]
45
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
44
        [%~ action_block = action_block _ '<input type="hidden" name="public" value="' _ public _ '" />' ~%]
(-)a/virtualshelves/shelves.pl (-2 lines)
Lines 64-70 if ( $op eq 'add_form' ) { Link Here
64
    # Only pass default
64
    # Only pass default
65
    $shelf = { allow_change_from_owner => 1 };
65
    $shelf = { allow_change_from_owner => 1 };
66
} elsif ( $op eq 'edit_form' ) {
66
} elsif ( $op eq 'edit_form' ) {
67
    output_and_exit_if_error($query, $cookie, $template, { check => 'csrf_token' });
68
    $shelfnumber = $query->param('shelfnumber');
67
    $shelfnumber = $query->param('shelfnumber');
69
    $shelf       = Koha::Virtualshelves->find($shelfnumber);
68
    $shelf       = Koha::Virtualshelves->find($shelfnumber);
70
69
71
- 

Return to bug 34650