From ba49632a4b23277ec736edcd4f60221e55290c5e Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 28 Apr 2009 03:15:38 +0000 Subject: [PATCH] better test. New copies were getting the string "undefined" for the creator/owner field values git-svn-id: svn://svn.open-ils.org/ILS/trunk@13008 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index 033b55f318..9564f7b293 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -696,7 +696,7 @@ g.special_exception[$('catStrings').getString('staff.cat.copy_editor.field.ownin } }; 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.creat ); }; 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 ], -- 2.11.0