From 625fa54f9477bbd7d10a85f7d3c9bce0098fc0d9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 13 Jun 2024 11:50:23 +0200 Subject: 🐛 fix pin for administrative act (refs #5976) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ishtar_common/views.py b/ishtar_common/views.py index b362dfd04..a990fdfa6 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -736,6 +736,8 @@ def update_current_item(request, item_type=None, pk=None): def pin_search(request, item_type): + if item_type.startswith("administrativeact"): + item_type = "administrativeact" key = "pin-search-" + item_type if not item_type or not ( request.is_ajax() and request.method == "POST" and "value" in request.POST -- cgit v1.2.3