From 5e041ef1968b43ad6f47ad37060b95228e471d40 Mon Sep 17 00:00:00 2001 From: Kathleen Neumann Date: Tue, 1 Oct 2024 14:18:49 +0200 Subject: [PATCH] MIR-1357 fix invalid filter query if no id is given --- .../resources/META-INF/resources/js/mir/relatedItem-modal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js b/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js index 21cbf436c9..50fabf2553 100644 --- a/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js +++ b/mir-module/src/main/resources/META-INF/resources/js/mir/relatedItem-modal.js @@ -76,6 +76,10 @@ $(document).ready(function() { var input = button.next().next("input"); var sortType = ""; let fq = button.data("fq"); + //if no id is given set fq empty + if(fq == "-id:") { + fq = ""; + } //load genre classification loadGenres(initContent);