-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
SQL query is printed into browser in case of exception #13607
SQL query is printed into browser in case of exception #13607
Conversation
@magento-engcom-team, can you guide me how to remove old commits not related to this ? |
@shyamranpara: every PR needs its own branch and you should try to make sure it is up2date with the current
There is also some documentation on the devdocs, but they lack actual examples: I tend to do something like this after the git checkout 2.2-develop # checkout the 2.2-develop branch on my local machine
git fetch upstream # fetch all the changes from the upstream remote (they aren't being applied just yet)
git pull upstream 2.2-develop # bring my local 2.2-develop branch up2date with the one from the magento repo
git checkout -b my-new-branch # create a new branch with the name 'my-new-branch' based on the current branch in use
# manipulate some files
git commit -m "My new commit which fixes A & B"
git push origin my-new-branch # push your new branch to your own fork (=origin remote)
# now create a PR using Github's UI Hope this helps |
@shyamranpara even simpler approach is to create a new branch based on |
@shyamranpara new PR contains two commits anyway, let's continue here. Please just force push into the same |
@shyamranpara please rewrite branch so that it contains only necessary changes as a single commit. Just tell me if you need any assistance with that. |
thanks for support let me try again. |
@orlangur I have rewrite branch please check it. |
Hi @orlangur, thank you for the review. |
Description
SQL query is printed into browser in case of exception
Fixed Issues (if relevant)
Manual testing scenarios
Add an erroneous SQL statement to collection select object. I've added this code to \Magento\Catalog\Block\Product\ListProduct::initializeProductCollection():
$collection = $layer->getProductCollection();
$collection->getSelect()->columns('qwerty');
as an example
Open some category page in a browser.
SQL query is printed in a browser
Contribution checklist