itsmng / itsm-ng

ITSM-NG est un fork GLPI ayant pour objectif de proposer un volet communautaire fort, et des choix technologiques pertinents.
https://www.itsm-ng.org/
GNU General Public License v2.0
34 stars 10 forks source link

[BUG] Auto-increment of object name broken #286

Closed charleneauger closed 2 months ago

charleneauger commented 4 months ago

Describe the bug Auto-increment of the name of an object doesn't work (<ABCD####>, <ABCD\g####>). Note that the auto-increment of the inventory number is functional

To Reproduce Steps to reproduce the behavior:

  1. Create a gabarit with dynamic code
gabarit
  1. Create an object with this template

creation_objet

  1. ITSM create the object as (copy) or (copy X)
copy

Expected behavior The result should be ABCD0001, ABCD0002, etc ...

Additional context Reproducible bug on any version of ITSM. No errors in logs.

Best regards, Charlene

charleneauger commented 4 months ago

Hi @minzords @AntoineLemarchand ,

Any news ?

Best regards, Charlene

AntoineLemarchand commented 4 months ago

Hi,

We indeed managed to reproduce this bug easily, it comes from the fact that creations from templates with autoFill ar cloned from the template itself, thus the "(copy)". We did not manage to find the exact piece of code to modify do it does not happend but we should fix it shortly.

Best regards, Antoine

AntoineLemarchand commented 3 months ago

Hi,

This issue should be fixed by the commit mentioned above. It was merged with the latest release (1.6.4), feel free to close the ticket if the solution totally fixes the mentioned issue.

Best regards, Antoine