so we can store numbers
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 Sep 2005 17:25:09 +0000 (17:25 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 Sep 2005 17:25:09 +0000 (17:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1867 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/util/file.js

index c37a162..47bb3c5 100644 (file)
@@ -11,7 +11,7 @@ function set_object_in_file(file,obj) {
                        if (typeof(file)=='string') file = get_file( file );
                        var f = create_output_stream(file);
                        var obj_json = js2JSON( obj );
-                       f.write( obj_json, obj_json.length ); f.close();
+                       f.write( obj_json, String( obj_json ).length ); f.close();
                } else {
                        throw('Tried setting obj = ' + obj + '\n');
                }