
Hi Everyone, before we have configurate the survey to send only on one specific state, update this file /opt/otrs/Kernel/System/Ticket/Event/SurveySendRequest.pm return 1 if $Ticket{State} ne 'CERRADO'; And workś good, but, now we need to use 2 states to send the survey. like this. return 1 if ($Ticket{State} ne 'CERRADO ADMINISTRATIVO' || $Ticket{State} ne 'CERRADO'); But now, the survey are not send to anyone, do you know how to configure this? Thanks for your help.

Briefly, the code you presented says: return 1 if A OR B, which is likely to be the case all the time, because CERRADO is a ticket state not equal to CERRADO ADMINISTRATIVO, and vice versa. (Matches first "TRUE") What to do? I believe you want to say return 1 if A AND(&&) B, which says, "State isn't CERRADO AND State isn't CERRADO ADMINISTRATIVO" (All must be TRUE) On Wed, Aug 15, 2012 at 8:28 AM, Carlos Andrés Gallego Arboleda < carlos.gallego@itconsultores.com.co> wrote:
Hi Everyone,
before we have configurate the survey to send only on one specific state, update this file /opt/otrs/Kernel/System/Ticket/Event/SurveySendRequest.pm
return 1 if $Ticket{State} ne 'CERRADO';
And workś good, but, now we need to use 2 states to send the survey. like this.
return 1 if ($Ticket{State} ne 'CERRADO ADMINISTRATIVO' || $Ticket{State} ne 'CERRADO');
But now, the survey are not send to anyone, do you know how to configure this?
Thanks for your help.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Thanks for your answer Gerald,
your comment are correct, we want to send a survey on both states. but its
not working. any Idea?
2012/8/15 Gerald Young
Briefly, the code you presented says: return 1 if A OR B, which is likely to be the case all the time, because CERRADO is a ticket state not equal to CERRADO ADMINISTRATIVO, and vice versa. (Matches first "TRUE")
What to do?
I believe you want to say return 1 if A AND(&&) B, which says, "State isn't CERRADO AND State isn't CERRADO ADMINISTRATIVO" (All must be TRUE)
On Wed, Aug 15, 2012 at 8:28 AM, Carlos Andrés Gallego Arboleda < carlos.gallego@itconsultores.com.co> wrote:
Hi Everyone,
before we have configurate the survey to send only on one specific state, update this file /opt/otrs/Kernel/System/Ticket/Event/SurveySendRequest.pm
return 1 if $Ticket{State} ne 'CERRADO';
And workś good, but, now we need to use 2 states to send the survey. like this.
return 1 if ($Ticket{State} ne 'CERRADO ADMINISTRATIVO' || $Ticket{State} ne 'CERRADO');
But now, the survey are not send to anyone, do you know how to configure this?
Thanks for your help.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

besides change || to && ? On Wed, Aug 15, 2012 at 11:07 AM, Carlos Andrés Gallego Arboleda < carlos.gallego@itconsultores.com.co> wrote:
Thanks for your answer Gerald,
your comment are correct, we want to send a survey on both states. but its not working. any Idea?
2012/8/15 Gerald Young
Briefly, the code you presented says: return 1 if A OR B, which is likely to be the case all the time, because CERRADO is a ticket state not equal to CERRADO ADMINISTRATIVO, and vice versa. (Matches first "TRUE")
What to do?
I believe you want to say return 1 if A AND(&&) B, which says, "State isn't CERRADO AND State isn't CERRADO ADMINISTRATIVO" (All must be TRUE)
On Wed, Aug 15, 2012 at 8:28 AM, Carlos Andrés Gallego Arboleda < carlos.gallego@itconsultores.com.co> wrote:
Hi Everyone,
before we have configurate the survey to send only on one specific state, update this file /opt/otrs/Kernel/System/Ticket/Event/SurveySendRequest.pm
return 1 if $Ticket{State} ne 'CERRADO';
And workś good, but, now we need to use 2 states to send the survey. like this.
return 1 if ($Ticket{State} ne 'CERRADO ADMINISTRATIVO' || $Ticket{State} ne 'CERRADO');
But now, the survey are not send to anyone, do you know how to configure this?
Thanks for your help.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (2)
-
Carlos Andrés Gallego Arboleda
-
Gerald Young