Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Conversation

@mdbiz
Copy link

@mdbiz mdbiz commented Apr 21, 2019

Fix for error that came up on newer Bolt versions:

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class Bolt\Legacy\Content could not be converted to string") in "record.twig" at line 69.

Fix for error that came up on newer Bolt versions:

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class Bolt\Legacy\Content could not be converted to string") in "record.twig" at line 69.
@mdbiz mdbiz mentioned this pull request Apr 21, 2019
<p><strong>{{ key }}: </strong>
{{ attribute(record, key) }}
{% if attribute(record, key) is iterable %}
{{ dump(attribute(record, key)) }}
Copy link
Owner

@Mikescops Mikescops Apr 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to dump in production !

  • Please consider this

@Mikescops
Copy link
Owner

Thanks for your PR, I'll take a look as soon as possible 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants