You are not logged in.
Pages: 1
Topic closed
Bonjour,
quand je fais une recherche dans les éléments visualisés, peu importe le critère, un ordinateur sort toujours dans la liste.
si je choisi un critère qui n'existe pas (par ex : azerty), le PC sort seul.
Merci
GLPI : 0.68.2 sur WAMP sous windows 2000
Offline
qu'est ce que ce PC a de spécial ?
pour pouvoir tester il nous faudrait votre BDD ou dans un premier temps la sortie du mode debug.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Voilà ce que donne le mode debug
TIME
0.214s
POST VARIABLE
GET VARIABLE
start => 0
order => ASC
deleted => N
distinct => N
link => Array
field => Array
0 => view
contains => Array
0 => azerty
link2 => Array
field2 => Array
0 => view
contains2 => Array
0 =>
type2 =>
sort => 1
SESSION VARIABLE
glpi_plugins => Array
MESSAGE_AFTER_REDIRECT =>
glpiID => 13
glpiname => rybakowski
glpirealname => Rybakowski
glpifirstname => Arnaud
glpilanguage => fr_FR
glpitracking_order => no
glpiauthorisation => 1
glpiextauth => 1
glpisearchcount => Array
1 => 1
glpisearchcount2 => Array
1 => 0
glpiroot => /glpi
glpilist_limit => 30
glpicrontimer => 1164639508
glpiprofile => Array
ID => 4
name => super-admin
interface => central
is_default => 0
computer => w
monitor => w
software => w
networking => w
printer => w
peripheral => w
cartridge => w
consumable => w
phone => w
notes => w
contact_enterprise => w
document => w
contract_infocom => w
knowbase => w
faq => w
reservation_helpdesk => 1
reservation_central => w
reports => r
ocsng => w
dropdown => w
device => w
typedoc => w
link => w
config => w
search_config => w
check_update => r
profile => w
user => w
group => w
logs => r
reminder_public => w
backup => w
create_ticket => 1
delete_ticket => 1
comment_ticket => 1
comment_all_ticket => 1
update_ticket => 1
own_ticket => 1
steal_ticket => 1
assign_ticket => 1
show_ticket => 1
show_full_ticket => 1
observe_ticket => 1
show_planning => 1
show_all_planning => 1
statistic => 1
password_update => 1
helpdesk_hardware => 3
helpdesk_hardware_type => 8388674
show_group_ticket => 0
glpigroups => Array
glpi_viewcentral => my
glpi_onglet => 1
glpisearch => Array
1 => Array
contains => Array
0 => azerty
field => Array
0 => view
sort => 1
deleted => N
start => 0
glpi_mailconfig => 1
SQL REQUEST
Number of request: 4
Total Time: 0s
--------------------------------------------------------------------------------
N° 1 :
SELECT *
FROM glpi_display
WHERE type='1' AND FK_users='13'
ORDER BY rank
Time: 0.000s
--------------------------------------------------------------------------------
N° 2 :
SELECT *
FROM glpi_display
WHERE type='1' AND FK_users='0'
ORDER BY rank
Time: 0.000s
--------------------------------------------------------------------------------
N° 3 :
SET SESSION group_concat_max_len = 9999999;
Time: 0.000s
--------------------------------------------------------------------------------
N° 4 :
SELECT glpi_computers.name AS ITEM_0, glpi_enterprises.name AS ITEM_1, glpi_enterprises.website AS ITEM_1_2, glpi_enterprises.ID AS ITEM_1_3, glpi_computers.serial AS ITEM_2, glpi_type_computers.name AS ITEM_3, glpi_dropdown_model.name AS ITEM_4, glpi_dropdown_os.name AS ITEM_5, glpi_dropdown_locations.completename AS ITEM_6, glpi_computers.contact AS ITEM_7, glpi_infocoms.buy_date AS ITEM_8, glpi_infocoms.warranty_duration AS ITEM_9, glpi_device_processor.designation AS ITEM_10, glpi_computers.ID AS ID
FROM glpi_computers
LEFT JOIN glpi_enterprises ON (glpi_computers.FK_glpi_enterprise = glpi_enterprises.ID)
LEFT JOIN glpi_type_computers ON (glpi_computers.type = glpi_type_computers.ID)
LEFT JOIN glpi_dropdown_model ON (glpi_computers.model = glpi_dropdown_model.ID)
LEFT JOIN glpi_dropdown_os ON (glpi_computers.os = glpi_dropdown_os.ID)
LEFT JOIN glpi_dropdown_locations ON (glpi_computers.location = glpi_dropdown_locations.ID)
LEFT JOIN glpi_infocoms ON (glpi_computers.ID = glpi_infocoms.FK_device AND glpi_infocoms.device_type='1')
LEFT JOIN glpi_computer_device AS DEVICE_2 ON (glpi_computers.ID = DEVICE_2.FK_computers AND DEVICE_2.device_type='2')
LEFT JOIN glpi_device_processor ON (DEVICE_2.FK_device = glpi_device_processor.ID)
WHERE glpi_computers.deleted='N' AND glpi_computers.is_template='0' AND ( (glpi_computers.name LIKE '%azerty%' ) OR (glpi_enterprises.name LIKE '%azerty%' ) OR (glpi_computers.serial LIKE '%azerty%' ) OR (glpi_type_computers.name LIKE '%azerty%' ) OR (glpi_dropdown_model.name LIKE '%azerty%' ) OR (glpi_dropdown_os.name LIKE '%azerty%' ) OR (glpi_dropdown_locations.completename LIKE '%azerty%' ) OR (glpi_computers.contact LIKE '%azerty%' ) OR (glpi_infocoms.buy_date LIKE '%azerty%' ) OR (glpi_infocoms.warranty_duration = 0 ) ) GROUP BY ID
ORDER BY glpi_computers.name ASC
Time: 0.000s
Merci
Offline
heu pourquoi vous avez ca dans votre recherche :
OR (glpi_infocoms.warranty_duration = 0 )
c'est que vous affichez cette colonne par defaut ?
Dans ce cas c'est normal car il transforme azerty en entier ce qui donne 0.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Effectivement, j'affiche la durée de garantie dans l'affichage par défaut. Le PC en question a ses informations financières activée avec une date d'achat mais sans durée de garantie.
je vous remercie de votre réponse.
Offline
Pages: 1
Topic closed