My agents asked me to have the possibility for a
ticket to don't send the survey.
I resolved the problem in this way:
1) Creating a new parameter in Survey adding to survey.xml
this code
<ConfigItem Name="Survey::SendDependingOn"
Required="0" Valid="1">
<Description
Lang="en">Specifies the ticket free field used to decide whether
to send the survey.</Description>
<Description
Lang="de">Gibt das Ticket freien Feld verwendet, um zu entscheiden,
ob die an der Umfrage zu senden.</Description>
<Group>Survey</Group>
<SubGroup>Core</SubGroup>
<Setting>
<String Regex=""></String>
</Setting>
</ConfigItem>
2) Adding this code in module Survey.pm in sub RequestSend
before the row with comment "# cleanup":
my $SendDependingOn =
$Self->{ConfigObject}->Get('Survey::SendDependingOn');
if
($SendDependingOn) {
if
( $Ticket{$SendDependingOn} eq '0' ) {
return;
}
}
If you insert the value ‘0’ in the FreeFields
defined in “Survey::SendDependingOn” before closing the ticket, the
mail will not be send.
And now I would Know if there is a way to package this
" improvement" ?
Roberto
PS: I’m sorry for my bad english