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

Fix files regeneration during install #484

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

cedric-anne
Copy link
Contributor

@cedric-anne cedric-anne commented Apr 4, 2022

During install process, all plugin files were dropped, but none were regenerated, as plugin cannot be active when it is not yet installed.
After a quick analysis, I figured out that files were already regenerated by PluginFieldsContainer::install() and PluginFieldsDropdown::install(), so I removed call to plugin_fields_checkFiles() during install process.

I also simplified plugin_fields_checkFiles() which is always called with $force=true now. Appropriate session/rights checks are done before calling this method, so there is no need to have checks on session inside it.

@cedric-anne cedric-anne added the bug label Apr 4, 2022
@cedric-anne cedric-anne added this to the 1.12.11 milestone Apr 4, 2022
@cedric-anne cedric-anne self-assigned this Apr 4, 2022
@cedric-anne cedric-anne merged commit 2c47e87 into pluginsGLPI:develop Apr 4, 2022
@cedric-anne cedric-anne deleted the fix/regenerate branch April 4, 2022 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants