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

[BUGFIX] Fix: setting disableOverrideDemand not working #1174

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

SoraNoIseki
Copy link
Contributor

$this->settings['disableOverrideDemand'] ist type string, this method returns always true, while this setting enabled (value '1'), override demand was not disabled.

@derhansen
Copy link
Owner

derhansen commented Nov 30, 2023

Thanks for your PR. However having loose type comperations is not something I want to have in the extension, so the fix must be adapted, so $this->settings['disableOverrideDemand'] is typecasted to int

@derhansen
Copy link
Owner

Please update your patch to:

return (int)($this->settings['disableOverrideDemand'] ?? 0) !== 1 && $overwriteDemand !== [];

This fixes the problem in a typesafe way. Since the change is some kind of breaking for users (the setting/check is broken since v6 of the extension), I will release it as minor version with a notice of importance.

@derhansen
Copy link
Owner

Issue #1175

@SoraNoIseki
Copy link
Contributor Author

Please update your patch to:

return (int)($this->settings['disableOverrideDemand'] ?? 0) !== 1 && $overwriteDemand !== [];

This fixes the problem in a typesafe way. Since the change is some kind of breaking for users (the setting/check is broken since v6 of the extension), I will release it as minor version with a notice of importance.

That's right! I have now updated my patch.

@derhansen derhansen self-assigned this Dec 1, 2023
@derhansen derhansen added this to the 7.3.3 milestone Dec 1, 2023
@derhansen derhansen changed the base branch from main to develop December 3, 2023 11:03
@derhansen derhansen merged commit 17e9e61 into derhansen:develop Dec 3, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants