Skip to content

Conversation

@mpiot
Copy link
Contributor

@mpiot mpiot commented Sep 24, 2018

I encountered an error with the EditInPlaceListener, when you try to return a BinaryResponse, a test is done to check if the content is null, if not, it throw an error.

But with the EditInPlace enabled, the content is always changed to an empty string, then it fail: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php#L315

I just add a test to check if the ->getContent return false, in this case we return and abort the edit in place listener action.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Looks fair enough to me

@bocharsky-bw
Copy link
Member

Thank you @mpiot ! Sorry for the long delay with this simple change

@bocharsky-bw bocharsky-bw merged commit b954a0d into php-translation:master Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants