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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-1 / +1 lines)
Lines 165-171 Patron attribute types › Administration › Koha Link Here
165
          [% ELSE %]
165
          [% ELSE %]
166
            <input type="checkbox" id="opac_editable" name="opac_editable" />
166
            <input type="checkbox" id="opac_editable" name="opac_editable" />
167
          [% END %]
167
          [% END %]
168
            <span class="hint">Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above, does not work during <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=PatronSelfRegistration" target="_blank">self-registration</a> if <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=PatronSelfRegistrationVerifyByEmail" target="_blank">PatronSelfRegistrationVerifyByEmail</a> is set.)</span>
168
            <span class="hint">Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above)</span>
169
       </li>
169
       </li>
170
       <li><label for="staff_searchable">Searchable: </label>
170
       <li><label for="staff_searchable">Searchable: </label>
171
          [% IF attribute_type AND attribute_type.staff_searchable %]
171
          [% IF attribute_type AND attribute_type.staff_searchable %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +1 lines)
Lines 886-892 Link Here
886
                        </div> <!-- /.row -->
886
                        </div> <!-- /.row -->
887
                   [% END %]
887
                   [% END %]
888
888
889
                    [% IF ( Koha.Preference('ExtendedPatronAttributes') && patron_attribute_classes.size && ! ( action == 'new' && Koha.Preference('PatronSelfRegistrationVerifyByEmail') ) ) %]
889
                    [% IF ( Koha.Preference('ExtendedPatronAttributes') && patron_attribute_classes.size ) %]
890
                        <div class="row">
890
                        <div class="row">
891
                            <div class="col">
891
                            <div class="col">
892
                                [% FOREACH pa_class IN patron_attribute_classes %]
892
                                [% FOREACH pa_class IN patron_attribute_classes %]
(-)a/opac/opac-memberentry.pl (+1 lines)
Lines 190-195 if ( $action eq 'create' ) { Link Here
190
            $borrower{password}          = Koha::AuthUtils::generate_password(Koha::Patron::Categories->find($borrower{categorycode})) unless $borrower{password};
190
            $borrower{password}          = Koha::AuthUtils::generate_password(Koha::Patron::Categories->find($borrower{categorycode})) unless $borrower{password};
191
            $borrower{verification_token} = $verification_token;
191
            $borrower{verification_token} = $verification_token;
192
192
193
            $borrower{extended_attributes} = to_json($attributes);
193
            Koha::Patron::Modification->new( \%borrower )->store();
194
            Koha::Patron::Modification->new( \%borrower )->store();
194
195
195
            #Send verification email
196
            #Send verification email
(-)a/opac/opac-registration-verify.pl (-2 / +8 lines)
Lines 67-78 if ( Link Here
67
    delete $patron_attrs->{timestamp};
67
    delete $patron_attrs->{timestamp};
68
    delete $patron_attrs->{verification_token};
68
    delete $patron_attrs->{verification_token};
69
    delete $patron_attrs->{changed_fields};
69
    delete $patron_attrs->{changed_fields};
70
    delete $patron_attrs->{extended_attributes};
70
    my $patron = Koha::Patron->new( $patron_attrs )->store;
71
    my $patron = Koha::Patron->new( $patron_attrs )->store;
71
72
72
    Koha::Patron::Consent->new({ borrowernumber => $patron->borrowernumber, type => 'GDPR_PROCESSING', given_on => $consent_dt })->store if $consent_dt;
73
    Koha::Patron::Consent->new({ borrowernumber => $patron->borrowernumber, type => 'GDPR_PROCESSING', given_on => $consent_dt })->store if $consent_dt;
73
74
74
    if ($patron) {
75
    if ($patron) {
75
        $m->delete();
76
        if( $m->extended_attributes ){
77
            $m->borrowernumber( $patron->borrowernumber);
78
            $m->changed_fields(['extended_attributes']);
79
            $m->approve();
80
        } else {
81
            $m->delete();
82
        }
76
        C4::Form::MessagingPreferences::handle_form_action($cgi, { borrowernumber => $patron->borrowernumber }, $template, 1, C4::Context->preference('PatronSelfRegistrationDefaultCategory') ) if C4::Context->preference('EnhancedMessagingPreferences');
83
        C4::Form::MessagingPreferences::handle_form_action($cgi, { borrowernumber => $patron->borrowernumber }, $template, 1, C4::Context->preference('PatronSelfRegistrationDefaultCategory') ) if C4::Context->preference('EnhancedMessagingPreferences');
77
84
78
        $template->param( password_cleartext => $patron->plain_text_password );
85
        $template->param( password_cleartext => $patron->plain_text_password );
79
- 

Return to bug 30120