unistra / python-glpi-api

Python module for interacting with GLPI using the API.
GNU General Public License v3.0
18 stars 10 forks source link

_map_fields removes the itemtype from the fields uid incorrectly #14

Closed pniaps closed 1 year ago

pniaps commented 1 year ago

Method _map_fields replaces the fields uid to remove the itemtype from it.

I've one field with uid Ticket.Group_Ticket.Group.completename that gets translated to Group_Group.completename, but should be Group_Ticket.Group.completename

The itemtype should be deleted only from the beginning of the uid