Skip to content

Commit

Permalink
Additional fix for #7124, using 'key' instead of 'slug'
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Nov 3, 2017
1 parent 278306a commit 6c1cbad
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 6c1cbad

Please sign in to comment.