From b136840f5e8818e0904292766b8862daa6dc4f12 Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Mon, 27 Mar 2023 08:52:08 +0200
Subject: [PATCH] SSDM-13497: Changed how search works for filtering by
 parents/children to check identifier in filter by column mode.

---
 .../1/as/webapps/eln-lims/html/js/server/ServerFacade.js      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
index ad0fea4148d..fc9f1f39665 100644
--- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
+++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
@@ -2123,13 +2123,13 @@ function ServerFacade(openbisServer) {
                                 case "PARENTS":
                                     var parentsCriteria = criteria.withParents();
                                     parentsCriteria.withOrOperator();
-                                    parentsCriteria.withCode().thatContains(attributeValue);
+                                    parentsCriteria.withIdentifier().thatContains(attributeValue);
                                     parentsCriteria.withProperty(profile.propertyReplacingCode).thatContains(attributeValue);
                                     break;
                                 case "CHILDREN":
                                     var childrenCriteria = criteria.withChildren();
                                     childrenCriteria.withOrOperator();
-                                    childrenCriteria.withCode().thatContains(attributeValue);
+                                    childrenCriteria.withIdentifier().thatContains(attributeValue);
                                     childrenCriteria.withProperty(profile.propertyReplacingCode).thatContains(attributeValue);
                                     break;
                             }
-- 
GitLab