From 14c1dc253c73777e85049fc951ffee710b1289b9 Mon Sep 17 00:00:00 2001 From: maggiolo00 Date: Tue, 2 May 2017 13:49:39 +0200 Subject: [PATCH] Studio Fix for https://github.com/orientechnologies/orientdb/issues/7376 --- src/controllers/database-controller.js | 1 - src/services/database-services.js | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/database-controller.js b/src/controllers/database-controller.js index f1c2e72c..c46f07a2 100644 --- a/src/controllers/database-controller.js +++ b/src/controllers/database-controller.js @@ -271,7 +271,6 @@ dbModule.controller("BrowseController", ['$scope', '$routeParams', '$route', '$l var handleResult = function (data) { - if (data.result) { var warnings = data.warnings; diff --git a/src/services/database-services.js b/src/services/database-services.js index a14d1a98..150300df 100644 --- a/src/services/database-services.js +++ b/src/services/database-services.js @@ -633,13 +633,16 @@ database.factory('CommandApi', ["$http", "$resource", "Notification", "Spinner", if (contentType == 'text/csv') { var query = params.text.trim(); var config = {headers: {"accept": contentType}}; + + $http.post(text, query, config).success(function (data) { var time = ((new Date().getTime() - startTime) / 1000); var records = data.result ? data.result.length : ""; - var form = $(''); + var form = $(''); $('#download').append(form); + query = query.replace(/ /gi, ''); query = query.replace(/[^\w\s]/gi, ''); query = query.replace(/^\*/gi, ''); @@ -658,8 +661,6 @@ database.factory('CommandApi', ["$http", "$resource", "Notification", "Spinner", Notification.push({content: data}); if (error) error(data); }); - ; - } else {