better test. New copies were getting the string "undefined" for the creator/owner...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Apr 2009 03:15:38 +0000 (03:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Apr 2009 03:15:38 +0000 (03:15 +0000)
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

index 033b55f..9564f7b 100644 (file)
@@ -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 ],