Hi Mark,
Mark Wallace wrote:
> [...]
>From AgentClose.pm
sub Run {
my $Self = shift;
my %Param = @_;
my $Output;
my $QueueID = $Self->{QueueID};
# check needed stuff
# if ($Self->{Subaction} eq 'Store') { *# This value comes from
AgentClose.dtl and my If statement catches it.*
if ($Self->{CheckAction} eq 'Checked') { *#This is my test value I added
to the AgentClose.dtl form and I get nothing*.
Here is the problem. Action, Subaction, TicketID are default params and
availabe in $Self. But if you have custom params, you need to get this by:
[...]
my $CheckAction = $Self->{ParamObject}->GetParam(Param => 'CheckAction');
if ($CheckAction eq 'Checked') {
# do something
}
[...]
Martin
--
((otrs)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
http://www.otrs.de/ :: Manage your communication!
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev