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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (+1 lines)
Lines 499-504 Link Here
499
                                        <span class="sep">|</span>
499
                                        <span class="sep">|</span>
500
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
500
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
501
                                            <input type="hidden" name="op" value="edit_form" />
501
                                            <input type="hidden" name="op" value="edit_form" />
502
                                            <input type="hidden" name="referer" value="view" />
502
                                            <input type="hidden" name="category" value="category" />
503
                                            <input type="hidden" name="category" value="category" />
503
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
504
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
504
                                            <input type="submit" class="editshelf" value="Edit list" />
505
                                            <input type="submit" class="editshelf" value="Edit list" />
(-)a/opac/opac-shelves.pl (-3 / +2 lines)
Lines 90-100 if ( $op eq 'add_form' ) { Link Here
90
            push @messages, { type => 'error', code => 'error_on_insert' };
90
            push @messages, { type => 'error', code => 'error_on_insert' };
91
        } else {
91
        } else {
92
            push @messages, { type => 'message', code => 'success_on_insert' };
92
            push @messages, { type => 'message', code => 'success_on_insert' };
93
            $op = $referer;
93
            $op = 'view';
94
        }
94
        }
95
    } else {
95
    } else {
96
        push @messages, { type => 'error', code => 'unauthorized_on_insert' };
96
        push @messages, { type => 'error', code => 'unauthorized_on_insert' };
97
        $op = $referer;
97
        $op = 'list';
98
    }
98
    }
99
} elsif ( $op eq 'edit' ) {
99
} elsif ( $op eq 'edit' ) {
100
    $shelfnumber = $query->param('shelfnumber');
100
    $shelfnumber = $query->param('shelfnumber');
101
- 

Return to bug 15811