fixes a bug when purging offline transactions after an Export
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 17:01:30 +0000 (17:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 17:01:30 +0000 (17:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17404 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/main.js

index 455b122..2a42d3f 100644 (file)
@@ -224,6 +224,7 @@ function main_init() {
                                     throw(offlineStrings.getString('main.transaction_export.filename.error'));
                                 }
                             }
+                            file.close(); file = new util.file('pending_xacts'); // prevents a bug with .moveTo below
                             file._file.moveTo(null,filename);
                         } else {
                             alert(offlineStrings.getString('main.transaction_export.duplicate.warning'));