disconnect on error, at least to clear the translator cache
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Dec 2008 21:29:52 +0000 (21:29 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Dec 2008 21:29:52 +0000 (21:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11622 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/conify/global/actor/org_unit.js

index 9a55d3e..0cd98ad 100644 (file)
@@ -99,6 +99,7 @@ function save_org () {
                onerror : function (r) {
                        highlighter.editor_pane.red.play();
                        status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
+            pCRUD.disconnect();
             throw 'update error';
                },
                oncomplete : function (r) {
@@ -121,6 +122,7 @@ function save_org () {
                onerror : function (r) {
                        highlighter.editor_pane.red.play();
                        status_update( dojo.string.substitute( aou_strings.ERROR_SAVING_DATA, [ou_list_store.getValue( current_ou, 'name' )] ) );
+            pCRUD.disconnect();
             throw 'begin error';
                },
                oncomplete : function (r) {