Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix room map widget search not doing anything #3272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/3207.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed search function in room map widget
4 changes: 2 additions & 2 deletions python/nav/web/navlets/room_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from django.urls import reverse

from nav.web.navlets import Navlet
from nav.web.info.room.views import SearchForm
from nav.web.info.room.views import RoomSearchForm


class RoomMapNavlet(Navlet):
Expand All @@ -32,7 +32,7 @@ def get(self, request, *args, **kwargs):
context['can_edit_rooms'] = request.account.has_perm(
'web_access', reverse('seeddb-room-edit')
)
context['searchform'] = SearchForm()
context['searchform'] = RoomSearchForm()
return self.render_to_response(context)

def get_template_basename(self):
Expand Down
Loading