diff -Nur Kernel/Config/Files/QueuePref.xml /opt/otrs-3.1.13/Kernel/Config/Files/QueuePref.xml
--- Kernel/Config/Files/QueuePref.xml 1970-01-01 01:00:00.000000000 +0100
+++ /opt/otrs-3.1.13/Kernel/Config/Files/QueuePref.xml 2013-02-19 13:12:45.006970100 +0100
@@ -0,0 +1,36 @@
+
+
+
+ Parameters of the example queue attribute FaxNumber.
+ Ticket
+ Frontend::Queue::Preferences
+
+
+ - Kernel::Output::HTML::QueuePreferencesGeneric
+ - FaxNumber
+ - Define the queue faxnumber
+ - TextArea
+ - 50
+ - 5
+ - FaxNumber
+
+
+
+
+ Parameters of the example queue attribute PhoneNumber.
+ Ticket
+ Frontend::Queue::Preferences
+
+
+ - Kernel::Output::HTML::QueuePreferencesGeneric
+ - PhoneNumber
+ - Define the queue faxnumber
+ - TextArea
+ - 50
+ - 5
+ - PhoneNumber
+
+
+
+
+
diff -Nur Kernel/System/TemplateGenerator.pm /opt/otrs-3.1.13/Kernel/System/TemplateGenerator.pm
--- Kernel/System/TemplateGenerator.pm 2012-06-21 13:40:05.000000000 +0200
+++ /opt/otrs-3.1.13/Kernel/System/TemplateGenerator.pm 2013-02-19 13:09:25.758970100 +0100
@@ -1026,7 +1026,12 @@
}
}
+ # queueid is in Data if called from actual query
my %Queue;
+ if ($Param{Data}->{QueueID}) {
+ $Param{QueueID} = $Param{Data}->{QueueID};
+ }
+
if ( $Param{QueueID} ) {
%Queue = $Self->{QueueObject}->QueueGet( ID => $Param{QueueID} );
}
@@ -1088,6 +1093,29 @@
}
}
+ # cleanup
+ $Param{Text} =~ s/$Tag.+?$End/-/gi;
+
+ # get queue data and replace it with {HTMLUtilsObject}->ToHTML(
+ String => $Queue{$_},
+ );
+ }
+ }
+
+ # replace it
+ for ( keys %Queue ) {
+ next if !defined $Queue{$_};
+ $Param{Text} =~ s/$Tag$_$End/$Queue{$_}/gi;
+ }
+ }
+
# cleanup
$Param{Text} =~ s/$Tag.+?$End/-/gi;
diff -Nur Kernel/System/Ticket/Article.pm /opt/otrs-3.1.13/Kernel/System/Ticket/Article.pm
--- Kernel/System/Ticket/Article.pm 2012-06-21 13:40:06.000000000 +0200
+++ /opt/otrs-3.1.13/Kernel/System/Ticket/Article.pm 2013-02-19 13:09:22.034970100 +0100
@@ -2614,11 +2614,28 @@
$Notification{Subject} =~ s//$OwnerPreferences{$_}/gi;
}
}
-
+
# cleanup
$Notification{Subject} =~ s//-/gi;
$Notification{Body} =~ s//-/gi;
+ # get queue data
+ my %QueuePreferences;
+ if ( $Article{QueueID} ) {
+ %QueuePreferences = $Self->{QueueObject}->QueueGet( ID => $Article{QueueID} );
+ }
+
+ for ( keys %QueuePreferences ) {
+ if ( $QueuePreferences{$_} ) {
+ $Notification{Body} =~ s//$QueuePreferences{$_}/gi;
+ $Notification{Subject} =~ s//$QueuePreferences{$_}/gi;
+ }
+ }
+
+ # cleanup
+ $Notification{Subject} =~ s//-/gi;
+ $Notification{Body} =~ s//-/gi;
+
# get responsible data
my %ResponsiblePreferences = $Self->{UserObject}->GetUserData(
UserID => $Article{ResponsibleID},