Hello,
a small problem/question.
When I make a xml-file for an event to select only TicketCreate-events:
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Changes">
<ConfigItem Name="Ticket::EventModulePost###Test" Required="0" Valid="1">
<Description Translatable="1">test</Description>
<Group>Ticket</Group>
<SubGroup>Core::Ticket</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::System::Ticket::Event::Philip</Item>
<Item Key="Event">TicketCreate</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
My module is called for TicketCreate-events but also for ArticleCreate-events. Is this normal behaviour or do I something wrong?
...
sub Run {
my ( $Self, %Param ) = @_;
...
$Self->{LogObject}->Log( Priority => 'notice', Message => "Philip: " . $Param{Event} . " event catched.");
}
Entries in log:
Sat Dec 28 08:47:58 2013 notice OTRS-CGI-62 Philip: ArticleCreate event catched.
Sat Dec 28 08:47:58 2013 notice OTRS-CGI-62 Philip: TicketCreate event catched.
Philip
TicketCreate/ArticleCreate Event
Moderator: crythias
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: TicketCreate/ArticleCreate Event
even if it is, you can test for the event you don't want and exit.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 67
- Joined: 22 May 2013, 11:35
- Znuny Version: 3.3.2
- Real Name: Philip Steeman
- Company: VIVES
Re: TicketCreate/ArticleCreate Event
I already did this (put an if in the code), but I mentioned it because it is possibly a (small) bug.
Philip
Philip
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: TicketCreate/ArticleCreate Event
If you'd like, report it as a bug
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask