-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 import location hierarchy #17187
Fix import location hierarchy #17187
Conversation
trasher
commented
May 24, 2024
Q | A |
---|---|
Bug fix? | yes/no |
New feature? | yes/no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | glpi-project/glpi-inventory-plugin#513 (and maybe #17106) |
I'm a bit surprised location is created with the full name; I was ewpecting its name to be "Paris" only. I'll dig into that if necessary when I'll be back. |
Hi, I've tried your solution as I have the issue with locations for users and inventory but got an error: [2024-06-03 14:05:16] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, LDAP\Connection given in /opt/glpi/src/Html.php at line 318 |
Either this is not related; either the proposed solution is not correct at all. |
I cannot test LDAP import, but if proposed changes here cause an ( |
Co-authored-by: Cédric Anne <cedric.anne@gmail.com>
Hi, tried the changes from cedric-anne, everything ok now, solves the bug and no errors. |
* Fix proposal for import location hierarchy * Fixes * Apply suggestions from code review Co-authored-by: Cédric Anne <cedric.anne@gmail.com> * Update tests/functional/Glpi/Inventory/Inventory.php --------- Co-authored-by: Cédric Anne <cedric.anne@gmail.com>
* Fix proposal for import location hierarchy * Fixes * Apply suggestions from code review Co-authored-by: Cédric Anne <cedric.anne@gmail.com> * Update tests/functional/Glpi/Inventory/Inventory.php --------- Co-authored-by: Cédric Anne <cedric.anne@gmail.com>