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 2011-08-13 16:07:44

odb
Member
From: Slovakia (Slovak Republic)
Registered: 2011-01-22
Posts: 116

bug: fields unicity-bad output (checks inventory which was deleted)

In inventory i see only one PC with serial number 30020221 (picture1), but field unicity found four PC`s with this serial number (picture2). With phpMyAdmin  I found in database four records with serial number in the table glpi_computers (picture3). Three of them has column is_deleted set to 1 (picture4).

I set parameter  Record into the database denied : yes in fileds unicity and than I add new computer with serial number 30020221. GLPI shows error output, what helps me found a problem (picture5).
http://imghost.sk/image/428477-picture1.png
http://imghost.sk/image/428479-picture2.png
http://imghost.sk/image/428480-picture3.png
http://imghost.sk/image/428481-picture4.png
http://imghost.sk/image/428482-picture5.png


Debian Squeeze  (PHP 5.3.3-7+squeeze3, Apache 2.2.16-6+squeeze3, MySQL: 5.1.49-3) glpi 0.83.91

for testing - Debian Squeeze (PHP 5.3.3, Apache 2.2.16, MySQL: 5.1.49) glpi 0.85.4

Offline

#2 2011-08-13 16:47:25

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: bug: fields unicity-bad output (checks inventory which was deleted)

do you have items in trash ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2011-08-16 08:26:23

odb
Member
From: Slovakia (Slovak Republic)
Registered: 2011-01-22
Posts: 116

Re: bug: fields unicity-bad output (checks inventory which was deleted)

Yes, items are in trash. I forgot, that trash exist in glpi. Empty trash resolve problem.


it would be nice to change error output when I add item and output from duplicity rule.  It would be nice to add information, that items are in trash or don`t check items in trash.
In outputs is no information which tell me where is a problem.


Debian Squeeze  (PHP 5.3.3-7+squeeze3, Apache 2.2.16-6+squeeze3, MySQL: 5.1.49-3) glpi 0.83.91

for testing - Debian Squeeze (PHP 5.3.3, Apache 2.2.16, MySQL: 5.1.49) glpi 0.85.4

Offline

#4 2011-08-16 09:09:48

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: bug: fields unicity-bad output (checks inventory which was deleted)

odb wrote:

It would be nice to add information

i agree

odb wrote:

that items are in trash or don`t check items in trash

no, otherwise it's not unicity anymore

Offline

#5 2011-08-23 17:18:44

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: bug: fields unicity-bad output (checks inventory which was deleted)

Information of item in trash added in 0.83.
https://forge.indepnet.net/issues/3074

I close


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB