[otrs-cvs] otrs/Kernel/Output/HTML TicketOverviewSmall.pm, 1.55, 1.56 TicketOverviewMedium.pm, 1.56, 1.57 TicketOverviewPreview.pm, 1.75, 1.76 DashboardTicketGeneric.pm, 1.54, 1.55
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv22116/Kernel/Output/HTML
Modified Files:
TicketOverviewSmall.pm TicketOverviewMedium.pm
TicketOverviewPreview.pm DashboardTicketGeneric.pm
Log Message:
Fixed bug#9050 - Process Management: ticket title disappear.
Author: cr
Index: TicketOverviewSmall.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/TicketOverviewSmall.pm,v
retrieving revision 1.55
retrieving revision 1.56
diff -2 -u -d -r1.55 -r1.56
--- TicketOverviewSmall.pm 20 Nov 2012 15:05:14 -0000 1.55
+++ TicketOverviewSmall.pm 16 Jan 2013 02:48:10 -0000 1.56
@@ -1,5 +1,5 @@
# --
# Kernel/Output/HTML/TicketOverviewSmall.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -162,4 +162,14 @@
DynamicFields => 0,
);
+ if ( !$Article{Title} ) {
+ $Article{Title} = $Self->{LayoutObject}->{LanguageObject}->Get(
+ 'This ticket has no title or subject'
+ );
+ }
+ my %Address
+ = $Self->{QueueObject}->GetSystemAddress( QueueID => $Article{QueueID} );
+ $Article{Subject} = $Article{Title};
+ $Article{From} = '$Address{RealName} <$Address{Email}>';
+ $Article{FromRealname} = $Address{RealName};
}
Author: cr
Index: TicketOverviewMedium.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/TicketOverviewMedium.pm,v
retrieving revision 1.56
retrieving revision 1.57
diff -2 -u -d -r1.56 -r1.57
--- TicketOverviewMedium.pm 20 Nov 2012 15:04:54 -0000 1.56
+++ TicketOverviewMedium.pm 16 Jan 2013 02:48:10 -0000 1.57
@@ -1,5 +1,5 @@
# --
# Kernel/Output/HTML/TicketOverviewMedium.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -257,4 +257,13 @@
DynamicFields => 0,
);
+ if ( !$Article{Title} ) {
+ $Article{Title} = $Self->{LayoutObject}->{LanguageObject}->Get(
+ 'This ticket has no title or subject'
+ );
+ }
+ my %Address = $Self->{QueueObject}->GetSystemAddress( QueueID => $Article{QueueID} );
+ $Article{Subject} = $Article{Title};
+ $Article{From} = '$Address{RealName} <$Address{Email}>';
+ $Article{FromRealname} = $Address{RealName};
}
Author: cr
Index: TicketOverviewPreview.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/TicketOverviewPreview.pm,v
retrieving revision 1.75
retrieving revision 1.76
diff -2 -u -d -r1.75 -r1.76
--- TicketOverviewPreview.pm 20 Nov 2012 15:05:04 -0000 1.75
+++ TicketOverviewPreview.pm 16 Jan 2013 02:48:10 -0000 1.76
@@ -1,5 +1,5 @@
# --
# Kernel/Output/HTML/TicketOverviewPreview.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -281,4 +281,13 @@
if ( !%Article ) {
%Article = %Ticket;
+ if ( !$Article{Title} ) {
+ $Article{Title} = $Self->{LayoutObject}->{LanguageObject}->Get(
+ 'This ticket has no title or subject'
+ );
+ }
+ my %Address = $Self->{QueueObject}->GetSystemAddress( QueueID => $Article{QueueID} );
+ $Article{Subject} = $Article{Title};
+ $Article{From} = '$Address{RealName} <$Address{Email}>';
+ $Article{FromRealname} = $Address{RealName};
}
Author: cr
Index: DashboardTicketGeneric.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/DashboardTicketGeneric.pm,v
retrieving revision 1.54
retrieving revision 1.55
diff -2 -u -d -r1.54 -r1.55
--- DashboardTicketGeneric.pm 10 Jan 2013 15:20:08 -0000 1.54
+++ DashboardTicketGeneric.pm 16 Jan 2013 02:48:10 -0000 1.55
@@ -358,4 +358,11 @@
);
+ # set a default title if ticket has no title
+ if ( !$Ticket{Title} ) {
+ $Ticket{Title} = $Self->{LayoutObject}->{LanguageObject}->Get(
+ 'This ticket has no title or subject'
+ );
+ }
+
# create human age
if ( $Self->{Config}->{Time} ne 'Age' ) {
---------------------------------------------------------------------
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