[otrs-cvs] otrs/Kernel/System/ProcessManagement/TransitionAction TicketArticleCreate.pm, 1.1, 1.2
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/System/ProcessManagement/TransitionAction
In directory lancelot:/tmp/cvs-serv12357/Kernel/System/ProcessManagement/TransitionAction
Modified Files:
TicketArticleCreate.pm
Log Message:
- 2013-02-01 Fixed bug#9112 - ProcessManagment: TransitionAction TicketActicleCreate should not accept email type articles.
Author: cr
Index: TicketArticleCreate.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/ProcessManagement/TransitionAction/TicketArticleCreate.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- TicketArticleCreate.pm 11 Jan 2013 06:09:05 -0000 1.1
+++ TicketArticleCreate.pm 1 Feb 2013 19:20:38 -0000 1.2
@@ -120,5 +120,6 @@
Config => {
# required:
- ArticleType => 'note-internal', # email-external|email-internal|phone|fax|...
+ ArticleType => 'note-internal', # note-external|phone|fax|sms|...
+ # excluding any email type
SenderType => 'agent', # agent|system|customer
ContentType => 'text/plain; charset=ISO-8859-15', # or optional Charset & MimeType
@@ -189,4 +190,13 @@
}
+ # Check ArticleType
+ if ( $Param{Config}->{ArticleType} =~ m{\A email }msxi ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "ArticleType $Param{Config}->{ArticleType} is not supported",
+ );
+ return;
+ }
+
my $Success = $Self->{TicketObject}->ArticleCreate(
%{ $Param{Config} },
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log