Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improvements on flash message doc #7555

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

Closed
wants to merge 1 commit into from
Closed

Improvements on flash message doc #7555

wants to merge 1 commit into from

Conversation

lerox
Copy link

@lerox lerox commented Mar 1, 2017

No description provided.

@javiereguiluz
Copy link
Member

Did you have any problem with the existing code? In theory, the new code would behave the same as before, because the for ... doesn't iterate when there are no flash messages.

@lerox
Copy link
Author

lerox commented Mar 1, 2017

@javiereguiluz Hi, btw I had, but i saw that we already have an existing PR to solve the problem :)

#7554

Thanks

@lerox lerox closed this Mar 1, 2017
@lerox lerox deleted the patch-1 branch March 1, 2017 15:29
@lerox
Copy link
Author

lerox commented Mar 1, 2017

@javiereguiluz With the original code + the fix in #7554 :

Neither the property "flashes" nor one of the methods "flashes()", "getflashes()"/"isflashes()" or "__call()" exist and have public access in class "Symfony\Component\HttpFoundation\Session\Session"

Symfony 3.2.2

@javiereguiluz
Copy link
Member

@lerox sorry, you are absolutely right!! Luckily this will be soon merged. Thanks!

</div>
{% endif %}
{% endfor %}
{% if app.session.flashBag.keys %}
Copy link
Member

Choose a reason for hiding this comment

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

Actually, this is not part of #7554.

Copy link
Author

Choose a reason for hiding this comment

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

yep..

xabbuh added a commit that referenced this pull request Mar 1, 2017
…e (javiereguiluz)

This PR was merged into the 2.7 branch.

Discussion
----------

Fixed the way flash messages are retrieved in the template

In #7432 I changed the code of the templates to get the flash messages. I don't know why I did that ... because it's completely wrong 😵

In #7555 @lerox pointed this issue and I can confirm it:

![symfony_error](https://cloud.githubusercontent.com/assets/73419/23469257/6e423134-fea3-11e6-8d08-e56b01839404.png)

So, let's revert it.

Commits
-------

8ac43ca Fixed the way flash messages are retrieved in the template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants