[open-ils-commits] r13008 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 27 23:15:40 EDT 2009


Author: phasefx
Date: 2009-04-27 23:15:38 -0400 (Mon, 27 Apr 2009)
New Revision: 13008

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
better test.  New copies were getting the string "undefined" for the creator/owner field values

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-04-28 02:46:54 UTC (rev 13007)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-04-28 03:15:38 UTC (rev 13008)
@@ -696,7 +696,7 @@
 		}
 	};
 g.special_exception[$('catStrings').getString('staff.cat.copy_editor.field.creator.label')] = function(label,value) {
-		if (value == null || value == '' || value == 'null') return;
+		if (!Number(value)) return;
 		g.network.simple_request(
 			'FM_AU_RETRIEVE_VIA_ID',
 			[ ses(), value ],
@@ -715,7 +715,7 @@
 		);
 	};
 g.special_exception[$('catStrings').getString('staff.cat.copy_editor.field.last_editor.label')] = function(label,value) {
-		if (value == null || value == '' || value == 'null') return;
+		if (!Number(value)) return;
 		g.network.simple_request(
 			'FM_AU_RETRIEVE_VIA_ID',
 			[ ses(), value ],



More information about the open-ils-commits mailing list