Since bz28633, the patron's firstname is no longer displayed in the staff interface (moremember.tt) if the 'preferred_name' field is NULL or empty. This issue occurs when patrons are imported via external scripts (like Activitek) that do not automatically populate 'preferred_name' with the 'firstname' value.
To reproduce this issue, you will need to: Option 1: 1- Create a patron via the staff interface 2- Set the patron preferred name to null, using : --> UPDATE borrowers SET preferred_name = NULL WHERE borrowernumber = [specify the patron's borrowernumber that you just created] Option 2: 1-ADD patron directly in BD.
To reproduce this issue, you will need to: Option 1: 1- Create a patron via the staff interface 2- Set the patron preferred name to null, using : --> UPDATE borrowers SET preferred_name = NULL WHERE borrowernumber = [specify the patron's borrowernumber that you just created]; Option 2: 1-ADD patron directly in BD.
Created attachment 192651 [details] [review] 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.