Envio de Pesquisas de Satisfação por fila

Post Reply
dfoliveira
Znuny newbie
Posts: 22
Joined: 13 Aug 2012, 14:28
Znuny Version: 6.0.29
Real Name: Douglas Oliveira
Company: Tractus Soluções e Serviços em TI
Location: São Paulo - SP - Brasil

Envio de Pesquisas de Satisfação por fila

Post by dfoliveira »

Bom dia,

Gostaria de saber se existe uma forma de enviar várias pesquisas de satisfação, preciso enviar 1 por fila.
Achei esse código do Ronaldo Richieri mas não funcionou na versão que uso OTRS V 6.0.27


mkdir -p /opt/otrs/Custom/Kernel/System/Survey
cp /opt/otrs/Kernel/System/Survey/Request.pm /opt/otrs/Custom/Kernel/System/Survey/Request.pm

Edite o arquivo /opt/otrs/Custom/Kernel/System/Survey/Request.pm

Altere o código abaixo que deve estar por volta da 126 de:
------------------------
# find master survey
my $Status = 'Master';
return if !$DBObject->Prepare(
SQL => '
SELECT id
FROM survey
WHERE status = ?',
Bind => [ \$Status ],
Limit => 1,
);
----------------------
Para
---------------------
# find master survey
my $Status = 'Master';
# COMPLEMENTO - change sql to bring also valid surveys
return if !$DBObject->Prepare(
SQL => "SELECT s.id
FROM survey s, survey_queue sq, ticket t
WHERE s.id = sq.survey_id
and t.queue_id = sq.queue_id
and t.id = $Param{TicketID}
and s.status IN ('Valid', 'Master')",
# Bind => [ \$Status ],
Limit => 1,
);
# EO COMPLEMENTO
DOUGLAS OLIVEIRA
OTRS v6.29 - ITSM - SO Linux with MySQL
Post Reply