Skip to content

Commit

Permalink
Merge pull request #12 from German-BioImaging/post_method
Browse files Browse the repository at this point in the history
Fix error tagsearch not working for public group
  • Loading branch information
Tom-TBT committed Jun 2, 2024
2 parents cdbc4cc + 08dc5e1 commit 7f166a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.1
4.2.0
2 changes: 1 addition & 1 deletion omero_tagsearch/templates/omero_tagsearch/tagnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

<div id="searching">
<div class="left_panel_inner">
<form id="tagSearchForm" action="{% url 'wtsimages' %}" method="post" class="standard_form">{% csrf_token %}
<form id="tagSearchForm" action="{% url 'wtsimages' %}" method="get" class="standard_form">{% csrf_token %}
<h2>{% trans "Tag Search" %}</h2>
{# {{ tagnav_form.as_p }} #}
{{ tagnav_form.non_field_errors }}
Expand Down
8 changes: 4 additions & 4 deletions omero_tagsearch/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ def tag_image_search(request, conn=None, **kwargs):
import time

start = time.time()
if request.method == "POST":
if request.method == "GET":

selected_tags = [int(x) for x in request.POST.getlist("selectedTags")]
excluded_tags = [int(x) for x in request.POST.getlist("excludedTags")]
operation = request.POST.get("operation")
selected_tags = [int(x) for x in request.GET.getlist("selectedTags")]
excluded_tags = [int(x) for x in request.GET.getlist("excludedTags")]
operation = request.GET.get("operation")

# validate experimenter is in the active group
active_group = (
Expand Down

0 comments on commit 7f166a9

Please sign in to comment.