recherche sur ticket non fonctionne pas

Installation & Configuration du logiciel
fabrice
Gsup LEVEL 7
Messages : 327
Enregistré le : mar. 11 mars 2014 12:01

Bonjour,
la recherche dans les tickets ne fonctionne pas.
Quel son les champs que l'on peut rechercher ? cordialement
OS : Linux gestsup 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64
MariaDB : 10.4.21-MariaDB-1:10.4.21+maria~bionic (base : bsup 183.8MB)
PHP : 7.3.30-1+ubuntu18.04.1+deb.sury.org+1
GestSup : 3.2.15 (8871 Tickets)
Avatar du membre
Flox
Administrateur du site
Messages : 9026
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

Pouvez-vous reproduire le problème sur la webdemo ?

A noter la recherche est contextuelle par rapport au menu vos tickets ou tous les tickets

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
fabrice
Gsup LEVEL 7
Messages : 327
Enregistré le : mar. 11 mars 2014 12:01

Non sur la webdemo cela fonctionne
OS : Linux gestsup 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64
MariaDB : 10.4.21-MariaDB-1:10.4.21+maria~bionic (base : bsup 183.8MB)
PHP : 7.3.30-1+ubuntu18.04.1+deb.sury.org+1
GestSup : 3.2.15 (8871 Tickets)
Avatar du membre
Flox
Administrateur du site
Messages : 9026
Enregistré le : jeu. 21 juin 2012 19:00

Etes vous bien sur la vue "Tous les tickets" lorsque vous lancer la recherche ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
fabrice
Gsup LEVEL 7
Messages : 327
Enregistré le : mar. 11 mars 2014 12:01

oui
Fichiers joints
Capture.PNG
Capture.PNG (37.17 Kio) Vu 4609 fois
OS : Linux gestsup 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64
MariaDB : 10.4.21-MariaDB-1:10.4.21+maria~bionic (base : bsup 183.8MB)
PHP : 7.3.30-1+ubuntu18.04.1+deb.sury.org+1
GestSup : 3.2.15 (8871 Tickets)
Avatar du membre
Flox
Administrateur du site
Messages : 9026
Enregistré le : jeu. 21 juin 2012 19:00

Dans quel champ est présent la valeur "Afficha" sur vos tickets.
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
fabrice
Gsup LEVEL 7
Messages : 327
Enregistré le : mar. 11 mars 2014 12:01

dans le champ titre
OS : Linux gestsup 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64
MariaDB : 10.4.21-MariaDB-1:10.4.21+maria~bionic (base : bsup 183.8MB)
PHP : 7.3.30-1+ubuntu18.04.1+deb.sury.org+1
GestSup : 3.2.15 (8871 Tickets)
Avatar du membre
Flox
Administrateur du site
Messages : 9026
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez passer temporairement en mode debug, puis lancer la recherche et transmettre la requête affichée.

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
fabrice
Gsup LEVEL 7
Messages : 327
Enregistré le : mar. 11 mars 2014 12:01

Code : Tout sélectionner

DEBUG MODE:
SELECT DISTINCT tincidents.id, tincidents.type, tincidents.technician, tincidents.t_group, tincidents.title, tincidents.user, tincidents.u_group, tincidents.u_service, tincidents.u_agency, tincidents.sender_service, tincidents.date_create, tincidents.date_hope, tincidents.date_res, tincidents.state, tincidents.priority, tincidents.criticality, tincidents.category, tincidents.subcat, tincidents.techread, tincidents.place, tincidents.asset_id
FROM tincidents, tstates, tthreads, tsubcat, tcategory, tassets, tusers
WHERE
tincidents.user=tusers.id AND
tincidents.state=tstates.id AND
tincidents.id=tthreads.ticket AND
tincidents.subcat=tsubcat.id AND
tincidents.category=tcategory.id AND
tincidents.asset_id=tassets.id AND
( tincidents.title LIKE '%afficha%' OR
tincidents.description LIKE '%afficha%' OR
tthreads.text LIKE '%afficha%' OR
tsubcat.name LIKE 'afficha' OR
tassets.netbios LIKE 'afficha' OR
tcategory.name LIKE 'afficha' OR
tincidents.id = 'afficha' OR
tincidents.user LIKE (SELECT max(id) FROM tusers where (firstname LIKE '%afficha%' OR
lastname LIKE '%afficha%') AND
disable=0) ) AND
( tincidents.user LIKE '%' AND
tincidents.disable='0' AND
tincidents.u_group LIKE '%' AND
tincidents.technician LIKE '%' AND
tincidents.t_group LIKE '%' AND
tincidents.techread LIKE '%' AND
tincidents.category LIKE '%' AND
tincidents.subcat LIKE '%' AND
tincidents.id LIKE '%' AND
tincidents.user LIKE '%' AND
tincidents.date_hope LIKE '%' AND
tincidents.priority LIKE '%' AND
tincidents.criticality LIKE '%' AND
tincidents.type LIKE '%' AND
tincidents.title LIKE '%' ) AND
tincidents.disable='0'
ORDER BY id DESC
LIMIT 0,30
VAR: POST_keywords=afficha GET_keywords='' | POST_state=% GET_state=% state= | POST_date_create=% GET_date_create= | cnt_service= | GET_view= | POST_date_start= | POST_date_end= | cnt_agency=
Recherche de tickets : afficha  Nombre : 0
Erreur : Aucun ticket trouvé. 
OS : Linux gestsup 4.15.0-158-generic #166-Ubuntu SMP Fri Sep 17 19:37:52 UTC 2021 x86_64
MariaDB : 10.4.21-MariaDB-1:10.4.21+maria~bionic (base : bsup 183.8MB)
PHP : 7.3.30-1+ubuntu18.04.1+deb.sury.org+1
GestSup : 3.2.15 (8871 Tickets)
Avatar du membre
Flox
Administrateur du site
Messages : 9026
Enregistré le : jeu. 21 juin 2012 19:00

Via Phpmyadmin sur la table "tassets" pouvez vous vérifier qu'il existe une ligne avec l'id égal à 0 ?

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Répondre