From 54bdc5a8c95e158fd2b7570d1b1ca546b566c88f Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 7 Nov 2016 14:41:32 +0000
Subject: [PATCH] SSDM-2597 : bugfix, avoid imposible sortings

SVN: 37278
---
 .../js/views/AdvancedSearch/AdvancedSearchController.js    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchController.js
index 4312a1edf7c..7410d14ff99 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchController.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchController.js
@@ -132,6 +132,13 @@ function AdvancedSearchController(mainController, forceFreeTextSearch) {
 						fetchOptions.sort.type = "Attribute";
 						fetchOptions.sort.name = "modificationDate";
 						break;
+					case "entityKind":
+					case "identifier":
+					case "experiment":
+					case "matched":
+					case "score":
+						fetchOptions.sort = null;
+						break;
 					default: //Properties
 						fetchOptions.sort.type = "Property";
 						fetchOptions.sort.name = options.sortProperty;
-- 
GitLab