-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when rendering the essence picture view without options / html_options #2083
Labels
Comments
You are right. Please open a PR to the main branch. We will then backport. |
tvdeyen
pushed a commit
that referenced
this issue
May 17, 2021
Allow to render the essence picture view without options / html_options
tvdeyen
pushed a commit
that referenced
this issue
May 17, 2021
Allow to render the essence picture view without options / html_options
tvdeyen
pushed a commit
that referenced
this issue
May 17, 2021
Allow to render the essence picture view without options / html_options
backported down to 5.0-stable |
robinboening
pushed a commit
to robinboening/alchemy_cms
that referenced
this issue
Jul 2, 2021
Allow to render the essence picture view without options / html_options
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Following the instructions in this PR I'm removing the calls to
render_essence_view
in order to upgrade to AlchemyCMS v5:From
To
Expected behavior
It renders the partial correctly
Actual behavior
I get the following exception:
System configuration
I think I already found the reason for that.
The code here should be changed to
Because both keys are optional.
The variable
local_assigns[:html_options]
in my case isnil
and the default parameter is not considered in the initialize function.The result is that the variable is
nil
and not an Hash at this point, causing the exception.If my fix is correct, I will provide a PR. Also the new versions are affected, the code is the same also on the latest.
The text was updated successfully, but these errors were encountered: