From 40b48e7b11eb2849db915fc41ae12ac7802f5eb6 Mon Sep 17 00:00:00 2001 From: Mihail Maxacov <0xf013@gmail.com> Date: Wed, 28 Jan 2015 14:35:19 +0200 Subject: [PATCH] fix menu item not being removed from side menu after share state manipulation --- frontend/app/services/query-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/services/query-service.js b/frontend/app/services/query-service.js index 890beb9609..0358d9e410 100644 --- a/frontend/app/services/query-service.js +++ b/frontend/app/services/query-service.js @@ -317,7 +317,7 @@ module.exports = function(Query, Sortation, $http, PathHelper, $q, AVAILABLE_WOR var url = query.project_id ? PathHelper.apiProjectQueryPath(query.project_id, query.id) : PathHelper.apiQueryPath(query.id); return QueryService.doQuery(url, query.toUpdateParams(), 'PUT', function(response) { - query.save(response.data.query); + query.dirty = false; QueryService.fetchAvailableGroupedQueries(query.project_id); return angular.extend(response.data, { status: { text: I18n.t('js.notice_successful_update') }} );