Skip to content
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

Do not crash when creditmemo does not exist #2684

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Do not crash when creditmemo does not exist #2684

merged 2 commits into from
Nov 7, 2022

Conversation

luigifab
Copy link
Contributor

@luigifab luigifab commented Nov 6, 2022

Description

Go to Sales / Credit memos, open any credit memo. In the URL, change the credit memo id with an id that does not exist, you will got: Call to a member function updateBackButtonUrl() on bool.

OpenMage 20.0.16 / PHP 8.0.25

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml translations Relates to app/locale labels Nov 6, 2022
@sreichel
Copy link
Contributor

sreichel commented Nov 6, 2022

Instead of 404 page we should redirect to creditmemo/index?

sreichel
sreichel previously approved these changes Nov 6, 2022
@fballiano fballiano merged commit 9825e2d into OpenMage:1.9.4.x Nov 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

Unit Test Results

1 files  1 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌
7 runs  5 ✔️ 2 💤 0 ❌

Results for commit 9825e2d.

@luigifab luigifab deleted the no-creditmem branch November 7, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml translations Relates to app/locale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants