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

(-)a/opac/opac-memberentry.pl (-10 / +3 lines)
Lines 75-92 if ( $action eq q{} ) { Link Here
75
75
76
my $mandatory = GetMandatoryFields($action);
76
my $mandatory = GetMandatoryFields($action);
77
77
78
my @libraries = Koha::Libraries->search;
78
my $params = undef;
79
if ( $action eq 'create' || $action eq 'new' ) {
79
if ( $action eq 'create' || $action eq 'new' ) {
80
    my @PatronSelfRegistrationLibraryList = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList');
80
    my @PatronSelfRegistrationLibraryList = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList');
81
    if (@PatronSelfRegistrationLibraryList) {
81
    $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } };
82
        @libraries = map {
83
            my $l = $_;
84
            ( grep { $l->branchcode eq $_ } @PatronSelfRegistrationLibraryList )
85
              ? $l
86
              : ()
87
        } @libraries;
88
    }
89
}
82
}
83
my @libraries = Koha::Libraries->search($params);
90
84
91
my ( $min, $max ) = C4::Members::get_cardnumber_length();
85
my ( $min, $max ) = C4::Members::get_cardnumber_length();
92
if ( defined $min ) {
86
if ( defined $min ) {
93
- 

Return to bug 27604