Skip to content

Commit

Permalink
Merge branch 'master' into canada-py3
Browse files Browse the repository at this point in the history
  • Loading branch information
JVickery-TBS committed May 14, 2024
2 parents 60b198b + 3508fce commit c938c89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions changes/1475.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an issue with the Organization Autocomplete endpoint not working properly.
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{% ckan_extends %}

{%- block scripts -%}
{% if h.is_registry() %}
{% asset 'canada_internal/validation_spec' %}
{% endif %}
{{ super() }}
{%- endblock -%}

{% block pre_primary %}
{% if h.is_registry() %}
{% asset 'canada_internal/validation_spec' %}
{# load module to modify the goodtablesUI.spec #}
{# module required for i18n #}
<div data-module="canada-validation-spec"></div>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/canada/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def organization_autocomplete():
organization_list = []

if q:
context = {'user': g.user, 'model': model}
context = {'user': g.user, 'model': model, 'ignore_auth': True}
data_dict = {'q': q, 'limit': limit}
organization_list = get_action(
'organization_autocomplete'
Expand Down

0 comments on commit c938c89

Please sign in to comment.