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

Sector Nord AG: Fixed module check for calendar plugin. #623

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

jsinagowitz
Copy link
Contributor

Proposed change

Before loading any calendar plugins, there is a check if the plugin module/object exists using the $MainObject->Require() method.
Unfortunately, the negation is missing, so the error handling is executed if the plugin module exists.

Also (and this is why no one noticed the bug) here the Require() method takes the object reference as a parameter instead of the module path. The check will always be false, so the error handling will never be executed.

Type of change

  • '1 - 🐞 bug 🐞'

Additional information

Checklist

  • The code change is tested and works locally.(❗)
  • There is no commented out code in this PR.(❕)
  • You improved or added new unit tests.(❕)
  • Local ZnunyCodePolicy passed.(❕)
  • Local UnitTests / Selenium passed.(❕)
  • GitHub workflow CI (UnitTests / Selenium) passed.(❗)

@hanneshal hanneshal self-assigned this Jan 7, 2025
@hanneshal hanneshal added the 4 - verified This issue or pull request was verified. label Jan 7, 2025
Copy link
Member

@dennykorsukewitz dennykorsukewitz left a comment

Choose a reason for hiding this comment

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

Hi @jsinagowitz ,
thanks for your PR.

Approved 👍

Regards 🚀

@dennykorsukewitz dennykorsukewitz added the 3 - wait for merge Znuny, it's your turn. label Jan 14, 2025
@dennykorsukewitz dennykorsukewitz added this to the rel-7_1_4 milestone Jan 14, 2025
@dennykorsukewitz dennykorsukewitz changed the title Sector Nord AG: Fixed module check for calendar plugin Sector Nord AG: Fixed module check for calendar plugin. Jan 15, 2025
@dennykorsukewitz dennykorsukewitz merged commit 6cd687f into znuny:dev Jan 15, 2025
13 of 14 checks passed
@dennykorsukewitz dennykorsukewitz removed the 3 - wait for merge Znuny, it's your turn. label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - verified This issue or pull request was verified.
Development

Successfully merging this pull request may close these issues.

3 participants