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

Fixing module instance bug #55

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Fixing module instance bug #55

merged 2 commits into from
Jan 30, 2023

Conversation

eluhr
Copy link
Contributor

@eluhr eluhr commented Jan 29, 2023

The WidgetContent currently sets the timezone in its init method by getting the timezone set in the module via Module::getInstance()->timezone. But this only works if the (widgets) Module is loaded in the current context. When using the model outside of the module this results in an error.

This bugfix allows to use the model where you want and allows the change the module id if needed via dependency injection.

@eluhr eluhr requested a review from schmunk42 January 29, 2023 14:24
@eluhr eluhr merged commit 08cd2d3 into master Jan 30, 2023
@eluhr eluhr deleted the feature/module-instance-bugfix branch January 30, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant