Closed AD-cp closed 2 years ago
Do you have anything in the GLPI logs (files/_log/php-errors.log and files/_log/sql-errors,log) from around the time it tried generating numbers?
I just tried to generate and here's the log in php-errors.log
[2022-06-23 14:22:54] glpiphplog.WARNING: *** PHP Warning (2): Invalid argument supplied for foreach() in /var/www/html/glpi/src/Html.php at line 6602 Backtrace : ajax/fuzzysearch.php:43 Html::fuzzySearch()
I had it with the plugin disabled and regenerating it changed it to MON_<#######> once more.
Hi AD-cp,
What version did you use before?
Hi kabassanov, it was working alright with glpi 9.7.5 and the plugin in 2.5.0
OK, I know what the problem is... There was a code modification in 2.6.0 that dropped this. I've just discovered it also. I know the right place to modify. Just need to do it :)
I've just made a pull request for this. #60
I've just made a pull request for this. #60
Just updated the code on my install from your pull request , seems like it works, thanks ! :)
I replaced suffixPosition variable name by maskPosition...
Fixed by #60
Hi, Just updated to 2.8.0 and I can't generate any numbers , it stays like that : MON_<#######> Even when you click on regenerate and ovveride , it does it but the Inventory number isn't generating.