Skip to content
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

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

Open
jph7676 opened this issue May 15, 2024 · 1 comment
Open

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

jph7676 opened this issue May 15, 2024 · 1 comment

Comments

@jph7676
Copy link

jph7676 commented May 15, 2024

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
Copy link

Lacro59 commented Jul 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants