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 2009-02-24 23:02:30

jcarvajal
Member
Registered: 2008-12-30
Posts: 25

Reservations dont send notification for technician in charge

I have configurated in notifications options that the mail should be send to Requester, Technician in charge and administrator, but,

when I make a reservation, only the administrator GLPI and user received the notification for mail.


:S help
Any solution smile or there is a bug sad ?

Last edited by jcarvajal (2009-02-24 23:02:48)

Offline

#2 2009-02-26 17:18:55

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Reservations dont send notification for technician in charge

do you have errors in debug mode ?
hardware hace a technician assigned ?
technician have a valid email ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2010-03-10 15:23:11

fsancho
Member
Registered: 2009-05-11
Posts: 2

Re: Reservations dont send notification for technician in charge

I have this problem too.

I'm using GLPI 0.72.3 running under Ubuntu Server 9.10

My locales are set to Spanish es_ES

I have entered in debug mode and i can see this error.

PHP ERROR: Undefined index: EMAIL in /usr/local/glpi-0.72.3/inc/mailing.class.php at line 784
PHP ERROR: Undefined index: LANG in /usr/local/glpi-0.72.3/inc/mailing.class.php at line 784
   
looking into mailing.class.php i can see SQL query, and executing it through sql console it works ok, it retrieves user info, but i don't know how glpi stores the result.

I have changed the line 784 to this

$this->addToEmailList($emails,$row[0],$row[1]);

It looks a little ugly, but it works fine.

Offline

#4 2010-03-10 15:31:03

fsancho
Member
Registered: 2009-05-11
Posts: 2

Re: Reservations dont send notification for technician in charge

I have found the bug.

In line 783, in file mailing.class.php it reads

$row = $DB->fetch_row($result2);

when it should be

$row = $DB->fetch_array($result2);

Offline

#5 2011-04-04 15:00:56

msg78
Member
Registered: 2011-04-01
Posts: 4

Re: Reservations dont send notification for technician in charge

the problem persists... technician in charge of the hardware and hardware user of the reservation does not receive the notification, however the requester and the administrator does.

0.78.3 and 0.8RC1 also. there is no error in debug mode. of course the assignments have been made and the addresses to be valid.

from mysql log an interesting query:

SELECT DISTINCT `glpi_users`.id AS id,
                               `glpi_users`.`email` AS email,
                               `glpi_users`.`language` AS language
                  FROM `glpi_users` INNER JOIN `glpi_profiles_users`
                     ON (`glpi_profiles_users`.`users_id` = `glpi_users`.`id` AND ( `glpi_profiles_users`.`entities_id` = '0'  ) )
                  WHERE `glpi_users`.`id` = 'N/A'

Offline

#6 2011-04-08 10:55:39

msg78
Member
Registered: 2011-04-01
Posts: 4

Re: Reservations dont send notification for technician in charge

anybody? nobody...?

Offline

Board footer

Powered by FluxBB