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 2009-11-25 12:06:44

jhajas
Member
Registered: 2009-11-25
Posts: 3

bug: leading zero truncated in case of edit a numeric field

Hi,
I found interesting behavior that I consider for a bug. How to replicate it:

   * login to GLPI
   * find some computer
   * click to computer (to get an edit form)
   * change serial number to 12345
   * click the Update button
   * now change serial number to 012345
   * click the Update button again
   * check that result is again 12345

I also found that if you change value to 012345H it works as expected. I suspect some automatic value retyping cause this problem.

I use GLPI 0.72.3 recently updated from 0.71.5.
CentOS release 5.3 (Final)
Linux 2.6.18-128.1.10.el5xen #1 SMP Thu May 7 11:07:18 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux (xen guest)
# php -v
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:18)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Firefox 2.0.20 and also 3.5.5

No related errors in php-errors.log

Josef

Offline

#2 2011-04-30 00:06:42

p_harrold
Member
Registered: 2011-04-30
Posts: 1

Re: bug: leading zero truncated in case of edit a numeric field

I have had the exact same error Josef. Perhaps there is/should be a setting that allows leading zeroes? Does anyone have an update or some clarity for this?

Patrick

Offline

Board footer

Powered by FluxBB