the not important bug fixed
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Dec 2005 04:05:42 +0000 (04:05 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Dec 2005 04:05:42 +0000 (04:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2512 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index 5a362be..1239476 100644 (file)
@@ -214,7 +214,7 @@ patron.display.prototype = {
                                                obj.controller.view.cmd_patron_info.setAttribute('disabled','false');
 
                                                if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
-                                                       try { window.xulG.set_tab_name('Patron: ' + patron.family_name() + ', ' + patron.first_given_name() + ' ' + patron.second_given_name() ); } 
+                                                       try { window.xulG.set_tab_name('Patron: ' + patron.family_name() + ', ' + patron.first_given_name() + ' ' + (patron.second_given_name() ? patron.second_given_name() : '' ) ); } 
                                                        catch(E) { alert(E); }
                                                }