# HG changeset patch
# User Rafa Alonso <rafael.alonso@openbravo.com>
# Date 1416224897 -3600
#      Mon Nov 17 12:48:17 2014 +0100
# Node ID 780c6fc8760134e580a18df7881d5bfe39a74c5b
# Parent  1cf8456c93c85a11dadd11babb1dd6d54ec5d3f5
Fixes issue 28185: Do not perform a logout when the backend send an error with status = -1

diff -r 1cf8456c93c8 -r 780c6fc87601 web/org.openbravo.mobile.core/source/data/ob-datasource.js
--- a/web/org.openbravo.mobile.core/source/data/ob-datasource.js	Fri Nov 14 11:42:47 2014 +0100
+++ b/web/org.openbravo.mobile.core/source/data/ob-datasource.js	Mon Nov 17 12:48:17 2014 +0100
@@ -38,12 +38,6 @@
       // an error has been sent in the successful response
       OB.error(response);
 
-      if (status === -1) {
-        window.localStorage.clear();
-        OB.MobileApp.model.logout();
-        return;
-      }
-
       // generic error message
       var exception = {
         message: 'Unknown error',
