Glpi: [9.1.6] mailgate assign randomly user/technician

Created on 25 Jul 2017  路  10Comments  路  Source: glpi-project/glpi

Hi,

I have upgrade my GLPI from 9.1.2 to 9.1.6.
Since version 9.1.6, the mailgate assign randomly a user and a technician to a new tickets received by mail.

Is-it possible to fix it ?

Thanks

Most helpful comment

hi,

change [GLPIROOT]\inc\ticket.class.php at line 1584

change the condition form

// fill auto-assign when no tech defined (only for tech)
if ($_SESSION['glpiset_default_tech']
&& $_SESSION['glpiactiveprofile']['interface'] == 'central'
&& (!isset($input['_users_id_assign'])
|| $input['_users_id_assign'] == 0)) {
$input['_users_id_assign'] = Session::getLoginUserID();
}

to

// fill auto-assign when no tech defined (only for tech)
if (!Session::isCron()
&& $_SESSION['glpiset_default_tech']
&& $_SESSION['glpiactiveprofile']['interface'] == 'central'
&& (!isset($input['_users_id_assign'])
|| $input['_users_id_assign'] == 0)) {
$input['_users_id_assign'] = Session::getLoginUserID();
}

Now, Turning on "pre-select me as technician"

Best regards,
Filipe Figueiredo

All 10 comments

After 24h of operation, GLPI stop assign automatically a bad user and technician on ticket from mailgate.
But i have a new issue. The attachment has a bad user (Random user too) :
image

A similar issue in #641

Can you fix it please ?

Thanks in advance,

++

Hello,

I subscrive the issuue report.

Best Regards Filipe

Hello,

A temporary solution:

**Go to:** Setup -->"Default Values"--> "Pre-select me as a technician when creating a ticket"

::: change value to no.

glpi

Best Regards,
Filipe

Thank you Filipe,

We too recently upgraded to 9.1.6 and are experiencing the same issue.
Mailgate retrieved 8 messages. We have no automatic assignment rules in place and all mailgate tickets should arrive as "new". Instead all 8 were "processing" with 3 assigned to one technician, 3 to another, and the last 2 to one more tech.

Turning off "pre-select me as technician" may work, but of course now adds extra steps to the majority of our tickets (which do not come in via mailgate).

Regards,
Robert

hi,

change [GLPIROOT]\inc\ticket.class.php at line 1584

change the condition form

// fill auto-assign when no tech defined (only for tech)
if ($_SESSION['glpiset_default_tech']
&& $_SESSION['glpiactiveprofile']['interface'] == 'central'
&& (!isset($input['_users_id_assign'])
|| $input['_users_id_assign'] == 0)) {
$input['_users_id_assign'] = Session::getLoginUserID();
}

to

// fill auto-assign when no tech defined (only for tech)
if (!Session::isCron()
&& $_SESSION['glpiset_default_tech']
&& $_SESSION['glpiactiveprofile']['interface'] == 'central'
&& (!isset($input['_users_id_assign'])
|| $input['_users_id_assign'] == 0)) {
$input['_users_id_assign'] = Session::getLoginUserID();
}

Now, Turning on "pre-select me as technician"

Best regards,
Filipe Figueiredo

Hi,
Updated ticket.class.php at line 1584 as proposed.
This seems to be working correctly now.

Thanks!

I think this bug was corrected with the pull request #2583 and the commit is merged into 9.1/bugfixes.

@barbuslex barbuslex please close the issue it should be solved with the latest version. You can follow 3192 for special variation of the bug.

Fixed in latest releases

Hello! We have updated version of GLPI to 9.2.2 but the problem still exists.
Processing ticket:
image
Historical:
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stonebuzz picture stonebuzz  路  3Comments

gfernandez-me picture gfernandez-me  路  5Comments

trasher picture trasher  路  6Comments

dbegit picture dbegit  路  7Comments

Kotarik picture Kotarik  路  3Comments