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

--- Comment #3 from Ayoub Glizi-Vicioso <[email protected]> ---
Created attachment 192651
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192651&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 will have been automatically filled to match the
patron first name.

2- 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];

3- Make sure that the preferred name field of which you set to NULL is empty (
Patron details page > Edit).

4- Go back to the patron's main information page.
    --> Notice that only the surname shows up.

5- Apply this patch.

AFTER APPLYING PATCH:

6- Refresh the  page (Ctrl + r and F5).

7- Notice that the first name is now also displayed.

8- Open the 'edit patron' form and you will see that the preferred name field
is still empty.

-- 
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