From a247c4ef1cb34a2ef780576baeefff2a8db5ed06 Mon Sep 17 00:00:00 2001 From: eikek Date: Mon, 31 Oct 2022 22:28:17 +0100 Subject: [PATCH] Fix query generated for linked queries Closes: #1808 --- modules/webapp/src/main/elm/Data/ItemQuery.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/webapp/src/main/elm/Data/ItemQuery.elm b/modules/webapp/src/main/elm/Data/ItemQuery.elm index 2d957716..5feff476 100644 --- a/modules/webapp/src/main/elm/Data/ItemQuery.elm +++ b/modules/webapp/src/main/elm/Data/ItemQuery.elm @@ -207,14 +207,14 @@ render q = "incoming:" ++ boolStr (dir == Data.Direction.Incoming) ItemIdIn ids -> - "id~=" ++ String.join "," ids + "id~=" ++ String.join "," (List.map quoteStr ids) ItemIdMatch id -> if String.length id == 47 then - "id" ++ attrMatch Eq ++ id + "id" ++ attrMatch Eq ++ quoteStr id else - "id" ++ attrMatch Like ++ Util.String.appendIfAbsent "*" id + "id" ++ attrMatch Like ++ (quoteStr <| Util.String.appendIfAbsent "*" id) ItemName m str -> "name" ++ attrMatch m ++ quoteStr str