You are not logged in.
Pages: 1
Topic closed
Bonjour,
Un collègue a remarqué se comportement étrange, si on fait :
1 ligne de critère : Quantité RAM >=100
Opérateur entre critères : And
2 ligne de critère : Quantité RAM <1000
Alors la seconde ligne est ignorée. En mode débug, elle n'apparait même pas dans le SQL généré.
Offline
effectivement...
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Ah ouais...
SELECT glpi_computers.name AS ITEM_0, glpi_computers.ID AS ITEM_0_2, glpi_dropdown_manufacturer.name AS ITEM_1, glpi_dropdown_state.name AS ITEM_2, glpi_computers.serial AS ITEM_3, glpi_type_computers.name AS ITEM_4, glpi_dropdown_model.name AS ITEM_5, glpi_dropdown_os.name AS ITEM_6, glpi_dropdown_locations.completename AS ITEM_7, glpi_computers.date_mod AS ITEM_8, glpi_computers.contact AS ITEM_9, glpi_computers.contact_num AS ITEM_10, glpi_infocoms.bon_livraison AS ITEM_11, SUM(DEVICE_3.specificity) / COUNT( DEVICE_3.ID) * COUNT( DISTINCT DEVICE_3.ID) AS ITEM_12, glpi_computers.ID AS ID
FROM glpi_computers
LEFT JOIN glpi_dropdown_manufacturer ON (glpi_computers.FK_glpi_enterprise = glpi_dropdown_manufacturer.ID)
LEFT JOIN glpi_dropdown_state ON (glpi_computers.state = glpi_dropdown_state.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_3 ON (glpi_computers.ID = DEVICE_3.FK_computers AND DEVICE_3.device_type='3')
LEFT JOIN glpi_device_ram ON (DEVICE_3.FK_device = glpi_device_ram.ID)
WHERE glpi_computers.deleted='0' AND glpi_computers.is_template='0' AND ( glpi_computers.FK_entities IN (1) ) GROUP BY ID HAVING (ITEM_12 >= 100 )
ORDER BY glpi_computers.name ASC
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Y'a un autre bug dans la recherche sur les monitors...
Si on fait une recherche comme ca :
Ca renvoit la meme chose que sans la deuxieme ligne, alors qu'une recherche avec
AND NOT ^$ marche
Offline
la correction ici :
https://dev.indepnet.net:8080/glpi/changeset/6486
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1
Topic closed