glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Merging Software not possible

Open HLeithner opened this issue 2 months ago • 2 comments

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [x] I have searched the existing issues

Version

11.0.4

Bug description

When I try to merge one or multiple software packages into the root software packages the select modal doesn't work.

Relevant log output


Page URL

No response

Steps To reproduce

  1. Select a Software which exists in root entity
  2. Change the inheritance to "Child entities" and save
  3. goto the merge window
  4. select one or all entries in sub entities
  5. click the action button

if you have not selected the last entry you get an error message that no item has been selected

if you have selected the last entry in the list you get the drop down and can select merge, but after selecting merge you get an error message "No selected items".

Your GLPI setup information

No response

Anything else?

Select all video: https://github.com/user-attachments/assets/a574fe13-2c1b-4085-88a5-2925d708e8e0

Select single item and last item video https://github.com/user-attachments/assets/f7132972-d3f7-431d-bd07-82dd5b420de5

HLeithner avatar Dec 12 '25 17:12 HLeithner

Please provide logs, as requested.

trasher avatar Dec 12 '25 20:12 trasher

No relevant logs, but I debugged it and found the missing parts:

https://github.com/glpi-project/glpi/blob/634ce36f6900d0811af2953724fceb127479f9eb/src/Software.php#L965-L970

doesn't provide itemtype and id which is needed here:

https://github.com/glpi-project/glpi/blob/634ce36f6900d0811af2953724fceb127479f9eb/templates/components/datatable.html.twig#L237-L241

I allowed my self to create a pr #22354

I don't know if I have to close this issue or it's done automatically or you close it anyway, the pr solves my issue, sorry if the pr is not the correct way.

HLeithner avatar Dec 12 '25 21:12 HLeithner

[...] I allowed my self to create a pr #22354

👍

I don't know if I have to close this issue or it's done automatically or you close it anyway, the pr solves my issue, sorry if the pr is not the correct way.

Issues are closed automatically when related PR is merged; there is nothing more to do for now.

trasher avatar Dec 15 '25 06:12 trasher