You are not logged in.
Pages: 1
Hello,
small question:
If i have in the field "Inventory number" the worth "00123" an i change it to "000123" (one 0 more) and press "update" the site reloads but the field is not updated? Why?
Greetz
Offline
Because GLPI compare the datas and PHp say that 00123 is equals to 000123
Try to set another number and set 000123 afetr it will working.
We need to worr on this problem. I create a ticket.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Thank you very much for the fast answer!
The workaround works great, i changed the field sucessfully.
Thank you for the bugreport.
Offline
Because GLPI compare the datas and PHp say that 00123 is equals to 000123
Try to set another number and set 000123 afetr it will working.
We need to worr on this problem. I create a ticket.
Something like that might help:
<?
$test1 = "00123";
$test2 = "000123";
echo $test1." - ".$test2."\n";
echo ($test1 & $test1)."\n";
echo ($test1 & $test2)."\n";
if ($test1 == $test2)
{
echo "True";
echo "\n";
}
else
{
echo "False";
echo "\n";
}
if ( ($test1 & $test2) == $test1 )
{
echo "True";
echo "\n";
}
else
{
echo "False";
echo "\n";
}
?>
Best regards
--
Benjamin PREISS
Last edited by benp (2009-02-11 12:02:08)
Offline
Pages: 1