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

(-)a/Koha/Patron.pm (-2 / +2 lines)
Lines 3281-3287 sub notify_library_of_registration { Link Here
3281
    my ( $self, $email_patron_registrations ) = @_;
3281
    my ( $self, $email_patron_registrations ) = @_;
3282
3282
3283
    if (
3283
    if (
3284
        my $letter = C4::Letters::GetPreparedLetter(
3284
        my $letter = GetPreparedLetter(
3285
            module      => 'members',
3285
            module      => 'members',
3286
            letter_code => 'OPAC_REG',
3286
            letter_code => 'OPAC_REG',
3287
            branchcode  => $self->branchcode,
3287
            branchcode  => $self->branchcode,
Lines 3304-3310 sub notify_library_of_registration { Link Here
3304
                || C4::Context->preference('KohaAdminEmailAddress');
3304
                || C4::Context->preference('KohaAdminEmailAddress');
3305
        }
3305
        }
3306
3306
3307
        my $message_id = C4::Letters::EnqueueLetter(
3307
        my $message_id = EnqueueLetter(
3308
            {
3308
            {
3309
                letter                 => $letter,
3309
                letter                 => $letter,
3310
                borrowernumber         => $self->borrowernumber,
3310
                borrowernumber         => $self->borrowernumber,
(-)a/Koha/REST/V1/Patrons.pm (+7 lines)
Lines 160-165 sub add { Link Here
160
                    }
160
                    }
161
                }
161
                }
162
162
163
                my $notify_library = C4::Context->preference('EmailPatronRegistrations');
164
                if ( $overrides->{opac_reg_yes}
165
                    || ( $notify_library && !$overrides->{opac_reg_no} ) )
166
                {
167
                    $patron->notify_library_of_registration($notify_library);
168
                }
169
163
                if ( C4::Context->preference('EnhancedMessagingPreferences') ) {
170
                if ( C4::Context->preference('EnhancedMessagingPreferences') ) {
164
                    C4::Members::Messaging::SetMessagingPreferencesFromDefaults(
171
                    C4::Members::Messaging::SetMessagingPreferencesFromDefaults(
165
                        {
172
                        {
(-)a/api/v1/swagger/paths/patrons.yaml (+2 lines)
Lines 435-440 Link Here
435
          enum:
435
          enum:
436
            - welcome_yes
436
            - welcome_yes
437
            - welcome_no
437
            - welcome_no
438
            - opac_reg_yes
439
            - opac_reg_no
438
        collectionFormat: csv
440
        collectionFormat: csv
439
    consumes:
441
    consumes:
440
      - application/json
442
      - application/json
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 911-916 OPAC: Link Here
911
            - '<br>If you choose <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailAddressForPatronRegistrations">EmailAddressForPatronRegistrations</a> you have to enter a valid email address: '
911
            - '<br>If you choose <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailAddressForPatronRegistrations">EmailAddressForPatronRegistrations</a> you have to enter a valid email address: '
912
            - pref: EmailAddressForPatronRegistrations
912
            - pref: EmailAddressForPatronRegistrations
913
              class: email
913
              class: email
914
            - '<br><strong>NOTE:</strong> This uses the OPAC_REG notice.'
914
        -
915
        -
915
            - pref: PatronSelfRegistrationAlert
916
            - pref: PatronSelfRegistrationAlert
916
              choices:
917
              choices:
917
- 

Return to bug 41733