Bug 32770: Restore phone

all_phone vs all_phones
That was caught by Selenium tests t/db_dependent/selenium/patrons_search.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-02-22 14:43:02 +01:00 committed by Tomas Cohen Arazi
parent 18f3b7619b
commit c500fd3c61
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -90,7 +90,7 @@
[% SET full_address = 'streetnumber,streettype,address,address2,city,state,zipcode,country' %] [% SET full_address = 'streetnumber,streettype,address,address2,city,state,zipcode,country' %]
[% SET all_emails = 'email,emailpro,B_email' %] [% SET all_emails = 'email,emailpro,B_email' %]
[% SET all_phones = 'phone,phonepro,B_phone,altcontactphone,mobile' %] [% SET all_phones = 'phone,phonepro,B_phone,altcontactphone,mobile' %]
[% default_fields = [ standard, 'surname', 'cardnumber', all_emails, 'borrowernumber', 'userid', all_phone, full_address, 'dateofbirth', 'sort1', 'sort2' ] %] [% default_fields = [ standard, 'surname', 'cardnumber', all_emails, 'borrowernumber', 'userid', all_phones, full_address, 'dateofbirth', 'sort1', 'sort2' ] %]
[% search_options = default_fields.merge(standard.split(',')).unique %] [% search_options = default_fields.merge(standard.split(',')).unique %]
[% FOREACH s_o IN search_options %] [% FOREACH s_o IN search_options %]
[% display_name = PROCESS patron_fields name=s_o %] [% display_name = PROCESS patron_fields name=s_o %]