You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-06-08 12:05:24

evert
Member
From: Norway
Registered: 2023-06-08
Posts: 24

Clone an asset with a unique field - How?

Hi everyone,

I have added an item to my assets and would like to clone it so I don't have to fill in all the fields for additional units. Usually, this works fine, of course.

However, I have chosen to set the 'serial number' field of the asset to have to be unique (to prevent assets from getting registered more than once).

Is there a way to clone items anyway with this fields unicity in place? Can I perhaps specify somewhere not to clone a specific field? Or is my only option to disable the fields unicity while cloning items?


--
Regards,
   Evert

Offline

#2 2023-06-14 02:56:52

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Clone an asset with a unique field - How?

Could you add an asset template instead (Templates button at the top of the asset page), leaving the unique fields blank, and then create new items using that template?

Otherwise, it does seem like the cloning feature should remove the data for fields restricted by the unicity settings when creating the clones. This functionality would need to be added to the code.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB