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 error when no fields are updated #710

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

cedric-anne
Copy link
Contributor

Fixes following errors:

[2023-09-14 10:50:57] glpiphplog.WARNING: *** PHP Warning (2): Undefined variable $updates in C:\inetpub\wwwroot\marketplace\fields\inc\container.class.php at line 1330
Backtrace :
marketplace\fields\inc\container.class.php:1195 PluginFieldsContainer::constructHistory()
marketplace\fields\inc\container.class.php:1595 PluginFieldsContainer->updateFieldsValues()
src\Plugin.php:1475 PluginFieldsContainer::preItemUpdate()
src\CommonDBTM.php:1591 Plugin::doHook()
front\ticket.form.php:84 CommonDBTM->update()

[2023-09-14 10:50:57] glpiphplog.WARNING: *** PHP Warning (2): foreach() argument must be of type array|object, null given in C:\inetpub\wwwroot\marketplace\fields\inc\container.class.php at line 1330
Backtrace :
marketplace\fields\inc\container.class.php:1195 PluginFieldsContainer::constructHistory()
marketplace\fields\inc\container.class.php:1595 PluginFieldsContainer->updateFieldsValues()
src\Plugin.php:1475 PluginFieldsContainer::preItemUpdate()
src\CommonDBTM.php:1591 Plugin::doHook()
front\ticket.form.php:84 CommonDBTM->update()

@cedric-anne cedric-anne added this to the 1.21.4 milestone Sep 14, 2023
@cedric-anne cedric-anne self-assigned this Sep 14, 2023
@cedric-anne cedric-anne merged commit a43769b into pluginsGLPI:develop Sep 14, 2023
1 check passed
@cedric-anne cedric-anne deleted the fix/update-history branch September 14, 2023 11:24
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.

1 participant