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

(-)a/C4/VirtualShelves/Page.pm (-6 / +1 lines)
Lines 362-374 sub shelfpage { Link Here
362
362
363
        #Deleting a shelf (asking for confirmation if it has entries)
363
        #Deleting a shelf (asking for confirmation if it has entries)
364
            foreach ( $query->param() ) {
364
            foreach ( $query->param() ) {
365
                /(DEL|REMSHR)-(\d+)/ or next;
365
                /(DEL|REMSHR)-(\d+)$/ or next;
366
                $delflag = 1;
366
                $delflag = 1;
367
                my $number = $2;
367
                my $number = $2;
368
                unless ( defined $shelflist->{$number} || defined $privshelflist->{$number} ) {
369
                    push( @paramsloop, { unrecognized => $number } );
370
                    last;
371
                }
372
                #remove a share
368
                #remove a share
373
                if(/REMSHR/) {
369
                if(/REMSHR/) {
374
                    RemoveShare($loggedinuser, $number);
370
                    RemoveShare($loggedinuser, $number);
Lines 377-383 sub shelfpage { Link Here
377
                    $stay=0;
373
                    $stay=0;
378
                    next;
374
                    next;
379
                }
375
                }
380
                #
381
                unless ( ShelfPossibleAction( $loggedinuser, $number, 'manage' ) ) {
376
                unless ( ShelfPossibleAction( $loggedinuser, $number, 'manage' ) ) {
382
                    push( @paramsloop, { nopermission => $shelfnumber } );
377
                    push( @paramsloop, { nopermission => $shelfnumber } );
383
                    last;
378
                    last;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-1 / +1 lines)
Lines 176-181 Link Here
176
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
176
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
177
                                            <input type="hidden" value="1" name="shelves"/>
177
                                            <input type="hidden" value="1" name="shelves"/>
178
                                            <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
178
                                            <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
179
                                            <input type="hidden" value="1" name="CONFIRM-[% shelfnumber %]"/>
179
                                            [% IF ( showprivateshelves ) %]
180
                                            [% IF ( showprivateshelves ) %]
180
                                                <input type="hidden" name="display" value="privateshelves"/>
181
                                                <input type="hidden" name="display" value="privateshelves"/>
181
                                            [% END %]
182
                                            [% END %]
182
- 

Return to bug 6279