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

(-)a/Koha/Patron.pm (-2 / +5 lines)
Lines 386-392 sub delete { Link Here
386
            # This pref should then govern the results of other routines/methods such as
386
            # This pref should then govern the results of other routines/methods such as
387
            # Koha::Virtualshelf->new->delete too.
387
            # Koha::Virtualshelf->new->delete too.
388
            # FIXME Could be $patron->get_lists
388
            # FIXME Could be $patron->get_lists
389
            $_->delete for Koha::Virtualshelves->search( { owner => $self->borrowernumber } );
389
            #
390
            # Set owner to NULL if the list is an "all staff" list, otherwise delete it.
391
            $_->category == 3 ? $_->owner(undef)->store() : $_->delete
392
              for Koha::Virtualshelves->search(
393
                { owner => $self->borrowernumber } );
390
394
391
            # We cannot have a FK on borrower_modifications.borrowernumber, the table is also used
395
            # We cannot have a FK on borrower_modifications.borrowernumber, the table is also used
392
            # for patron selfreg
396
            # for patron selfreg
393
- 

Return to bug 20718