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 2016-04-15 18:33:07

taciano
Member
Registered: 2016-02-22
Posts: 9

Problem to assign tickets to a supplier.

I am using the 0.90.1 version of GLPI.
I have problem when trying to assign the ticket to a supplier. The same is not inserted to the ticket. Checking the SQL error logs, I found this:
"  *** MySQL query error:
  SQL:INSERT
                  INTO `glpi_suppliers_tickets` (`suppliers_id`,`use_notification`,`alternative_email`,`type`,`tickets_id`) VALUES (\'1\',\'Array\',\'Array\',\'2\',\'15199\')

  Error: Incorrect integer value: 'Array' for column 'use_notification' at row 1
  Backtrace :
  inc/commondbtm.class.php:425                       
  inc/commondbtm.class.php:831                       CommonDBTM->addToDB()
  inc/commonitilobject.class.php:794                 CommonDBTM->add()
  inc/ticket.class.php:1060                          CommonITILObject->prepareInputForUpdate()
  inc/commondbtm.class.php:1035                      Ticket->prepareInputForUpdate()
  front/ticket.form.php:69                           CommonDBTM->update()"

The problem seems to me that instead of entering 0 or 1 in the "use_notification" or email in the "alternative_email", there is the attempt to insert the string "Array" in both fields.

Manually managed to assign the supplier on the ticket, alteranco SQL and running it via CLI.
Anyone else with this problem? Is there a solution for this?

Last edited by taciano (2016-04-15 18:46:33)

Offline

#2 2016-04-15 19:51:25

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

Re: Problem to assign tickets to a supplier.


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

#3 2016-04-15 19:56:53

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

Re: Problem to assign tickets to a supplier.


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

#4 2016-04-15 20:14:52

taciano
Member
Registered: 2016-02-22
Posts: 9

Re: Problem to assign tickets to a supplier.

Thanks for the answer!

The fix worked perfectly!!

Last edited by taciano (2016-04-15 20:20:30)

Offline

Board footer

Powered by FluxBB