https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41780

--- Comment #6 from Ayoub Glizi-Vicioso <[email protected]> ---
Created attachment 192841
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192841&action=edit
Bug 41780: Show firstname if preferred_name is empty

To test:

BEFORE APPLYING PATCH:

1- Create a new patron(Patrons > +New patron), WITHOUT entering any preferred
name, via the staff interface.
    --> Notice that once added, if you edit the patron you just created,
    the preferred name field has been automatically filled to match the patron
first name.

2- Stay on the patron edit page.

3- Set your patron's preferred name to NULL through this SQL request:
    --> UPDATE borrowers SET preferred_name = NULL WHERE borrowernumber =
[borrowernumber located in the URL];

4- Reload the edit_form page.
    --> Notice that the preferred_name field is now empty.
    --> Note: do not save the form.

5- Return to the patron's main information page.
    --> Notice that only the surname is displayed.

6- Apply this patch.

AFTER APPLYING PATCH:

7- From the main page go to: Patrons > Search
    --> Search for the patron whose preferred name was set to NULL.

8- Notice that the firstname is now displayed (Note: reload page and clear the
cache if needed).

9- Open the 'Edit patron' form and you will see that the preferred name field
is now filled to match the firstname.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to