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 2017-01-18 12:42:37

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

[9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

version [9.1.1]  (pas observé en 0.90.5)
plugins :
    appliances           Name: Applicatifs                    Version: 2.2        State: Enabled
    fields               Name: Champs supplémentaires         Version: 1.3.1      State: Enabled
    behaviors            Name: Comportements                  Version: 1.2        State: Enabled
    mydashboard          Name: Dashboard                      Version: 1.2.1      State: Not installed
    formcreator          Name: Formulaires                    Version: 0.90-1.3.3 State: Not activated
    fusioninventory      Name: FusionInventory                Version: 9.1+1.0    State: Enabled
    genericobject        Name: Gestion d'objets               Version: 0.85-1.0   State: Not activated
    pdf                  Name: Impression pdf                 Version: 0.86       State: Not activated
    reports              Name: Rapports                       Version: 1.9.1      State: Not activated
    webservices          Name: Services Web                   Version: 1.6.0      State: Not activated
    dashboard            Name: Tableau de bord                Version: 0.7.4      State: Enabled


message :

Undefined index: itemtype in .../glpi/front/ticket.form.php at line 189

circonstances :
administration>utilisateurs>onglet tickets>nouveau ticket pour cet utilisateur.


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#2 2017-01-18 16:07:10

stockart
Member
From: Bruxelles
Registered: 2011-07-19
Posts: 19

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

Dans /inc/ticket.class.php à la ligne 5283 (version 9.1.1)

Si on change _add_fromitem en _add_fromuser le warning disparait et ça résoud en même temps mon bug (http://forum.glpi-project.org/viewtopic.php?id=156597) smile


Je ne sais pas si c'est la bonne solution ni où on peut remonter le problème ?

Offline

#3 2017-01-18 16:10:52

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

je vais le déposer sur github mais j'ai peur que ta solution ne crée un autre bug en faisant
parc>ordinateur>tickets>nouveau ticket pour cet element....


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#4 2017-01-18 16:20:06

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

@stockart :

j'ai découvert mon bug en essayant de reproduire celui que tu décris mais je n'ai pas de message d'erreur en selection de catégorie.


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#5 2017-01-18 16:31:47

stockart
Member
From: Bruxelles
Registered: 2011-07-19
Posts: 19

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

Pour moi ça ne posera pas de problème pour

parc>ordinateur>tickets>nouveau ticket

parce que la ligne modifiée n'est vue par glpi que quand l'item est un User

if ($item->getID()
          && ($item->getType() == 'User')
          && self::canCreate())

Mais je ne suis pas expert glpi donc je laisse le dernier mot aux pros smile


Ceci dit, je vois qu'il y a des warnings quand on fait ce que tu dis (parc>ordinateur>tickets>nouveau ticket) (avec ou sans la modif wink).
Je vais voir si je trouve quelque chose.

Offline

#6 2017-01-18 16:47:37

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

issue ouverte sur github. (pour les warnings)

https://github.com/glpi-project/glpi/issues/1644


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#7 2017-01-23 19:09:52

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: [9.1.1] index: itemtype in xxx/glpi/front/ticket.form.php at line 18

Corrigé


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB