Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks to Phind AI :)
Since my migration to GLPI11, I have random error in APPLIANCE view when a computer was associated
*** Uncaught PHP Exception TypeError: "array_intersect(): Argument #1 ($array) must be of type array, int given" at AssignableItem.php line 63
Backtrace :
./src/Glpi/Features/AssignableItem.php:63
./src/Glpi/Features/AssignableItem.php:63 array_intersect()
./src/CommonDBTM.php:2986 Appliance->canViewItem()
./src/CommonDBTM.php:1486 CommonDBTM->can()
./src/Appliance_Item.php:285 CommonDBTM->getLink()
./src/Appliance_Item.php:100 Appliance_Item::showForItem()
./src/CommonGLPI.php:694 Appliance_Item::displayTabContentForItem()
./ajax/common.tabs.php:108 CommonGLPI::displayStandardTab()
...Glpi/Controller/LegacyFileLoadController.php:64 require()
./vendor/symfony/http-kernel/HttpKernel.php:181 Glpi\Controller\LegacyFileLoadController->__invoke()
./vendor/symfony/http-kernel/HttpKernel.php:76 Symfony\Component\HttpKernel\HttpKernel->handleRaw()
./vendor/symfony/http-kernel/Kernel.php:197 Symfony\Component\HttpKernel\HttpKernel->handle()
./public/index.php:70 Symfony\Component\HttpKernel\Kernel->handle()
message was clear as an array was expected, but an INT was provided.
This fix the vew issue
Checklist before requesting a review
Please delete options that are not relevant.
Description
Screenshots (if appropriate):