Skip to content

Commit

Permalink
[QOLDEV-692] pass package type through to resource creation activity …
Browse files Browse the repository at this point in the history
…item, GitHub ckan#8034
  • Loading branch information
antuarc committed Feb 2, 2024
1 parent 8ed608d commit d8349e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -4,7 +4,7 @@
<ul>
{% for change in changes %}
{% snippet "snippets/changes/{}.html".format(
change.type), change=change %}
change.type), change=change, pkg_dict=pkg_dict %}
<br>
{% endfor %}
</ul>
@@ -1,4 +1,4 @@
{% set dataset_type = request.view_args.package_type %}
{% set dataset_type = request.view_args.package_type or pkg_dict['type'] %}
{% set pkg_url = h.url_for(dataset_type ~ '.read', id=change.pkg_id) %}
{% set resource_url = h.url_for(dataset_type ~ '_resource.read', id=change.pkg_id, resource_id = change.resource_id, qualified=True) %}

Expand Down

0 comments on commit d8349e7

Please sign in to comment.