pluginsGLPI / fields

Additionals fields for GLPI
http://glpi-plugins.rtfd.io/en/latest/fields/index.html
GNU General Public License v2.0
89 stars 66 forks source link

glpi 10 transfert asset avec custom field champs listes multiples #788

Open jph7676 opened 2 months ago

jph7676 commented 2 months ago

Bonjour, lors du transfert d'un asset d'entité avec des customs fields, les valeurs des champs listes multiples sont perdues glpi 10.0.15 fields 1.21.8

Lacro59 commented 1 week ago

To explain further, the problem concerns the multi-valued list. When we use this, data is lost when an action (backup, mass action, ...) is performed.

Exemple with this additional fields: image I am able to put various data which are well saved: image As soon as you save a change or use mass actions, the data is lost only for the multi-valued list: image

I also noticed the problem when trying to use generated objects in code and do the update:

$item = new PluginFieldsTickettestplugin();
$item->getFromDB($item_id);
$item->update(['id' =>$item_id, 'locations_id' => $location->getID()]);

glpi 10.0.15 fileds 1.21.10