Skip to content

Commit

Permalink
Merge pull request #7141 from bolt/hotfix/key-vs-slug
Browse files Browse the repository at this point in the history
On Dashboard listings, use 'key' instead of 'slug'
  • Loading branch information
GwendolenLynch committed Nov 3, 2017
2 parents bc473e3 + 6c1cbad commit 507fd2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/view/twig/dashboard/_recently_edited.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'compact': true,
'content': content,
'excerptlength': 280,
'permissions': context.permissions[contenttype.slug],
'permissions': context.permissions[contenttype_key],
'thumbsize': 54,
} %}
{{ include(['@bolt/custom/listing/' ~ content.contenttype.slug ~ '.twig', '@bolt/_sub/_listing.twig'], listing_vars) }}
Expand Down
4 changes: 2 additions & 2 deletions app/view/twig/dashboard/dashboard.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
{% endif %}
</div>

{% for contenttype, multiplecontent in context.latest %}
{% for contenttype_key, multiplecontent in context.latest %}
{% if multiplecontent %}
{% set contenttype = config.get('contenttypes/' ~ contenttype) %}
{% set contenttype = config.get('contenttypes/' ~ contenttype_key) %}
{{ include('@bolt/dashboard/_recently_edited.twig') }}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 507fd2f

Please sign in to comment.