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

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

index cb992f4..b1a2f4c 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'));