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

Prevent Javascript error if the page will be unlocked #2942

Conversation

sascha-karnatz
Copy link
Contributor

What is this pull request for?

Make an undefined check to the locked status label which is only available in page tree view. If user is closing the tab in page edit view (or any other view) it will result in a javascript error.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

Make an undefined check to the locked status label which is only available in page tree view. If user is closing the tab in page edit view (or any other view) it will result in a javascript error.
@sascha-karnatz sascha-karnatz requested a review from a team as a code owner June 27, 2024 10:15
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.96%. Comparing base (4774203) to head (bc1a1c1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2942   +/-   ##
=======================================
  Coverage   95.96%   95.96%           
=======================================
  Files         232      232           
  Lines        6272     6272           
=======================================
  Hits         6019     6019           
  Misses        253      253           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen added backport-to-7.1-stable Needs to be backported to 7.1-stable backport-to-7.2-stable Needs to be backported to 7.2-stable labels Jun 27, 2024
@tvdeyen tvdeyen merged commit 2bff8bd into AlchemyCMS:main Jun 27, 2024
39 checks passed
@alchemycms-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
7.1-stable
7.2-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.1-stable Needs to be backported to 7.1-stable backport-to-7.2-stable Needs to be backported to 7.2-stable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants