From 5e61c7dcc44296347675fc21a4c49e26b15c247f Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Fri, 6 May 2011 10:14:18 +0200 Subject: [PATCH] Add needed patch for current RT releases --- README.patch | 10 ++++++++++ rt-3.8.10-AfterMessageBox.patch | 12 ++++++++++++ rt-4.0.0-AfterMessageBox.patch | 12 ++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 README.patch create mode 100644 rt-3.8.10-AfterMessageBox.patch create mode 100644 rt-4.0.0-AfterMessageBox.patch diff --git a/README.patch b/README.patch new file mode 100644 index 0000000..6ae26eb --- /dev/null +++ b/README.patch @@ -0,0 +1,10 @@ +This extension require a callback that is not yet present (at RT 4.0.0 time) in share/html/Ticket/Display.html. + +To add it, got to /path/to/your/rt, then run the following command: + +For RT 4.0.0: +patch -p1 < /path/to/this/extension/rt-4.0.0-AfterMessageBox.patch + +For RT 3.8.10: +patch -p1 < /path/to/this/extension/rt-3.8.10-AfterMessageBox.patch + diff --git a/rt-3.8.10-AfterMessageBox.patch b/rt-3.8.10-AfterMessageBox.patch new file mode 100644 index 0000000..5ef8f18 --- /dev/null +++ b/rt-3.8.10-AfterMessageBox.patch @@ -0,0 +1,12 @@ +diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html +index 50c6f93..94e9a94 100755 +--- a/share/html/Ticket/Update.html ++++ b/share/html/Ticket/Update.html +@@ -144,6 +144,7 @@ + % $IncludeSignature = 0 if $Action ne 'Respond' && !RT->Config->Get('MessageBoxIncludeSignatureOnComment'); + <& /Elements/MessageBox, Name=>"UpdateContent", IncludeSignature => $IncludeSignature, %ARGS &> + % } ++% $m->callback( %ARGS, CallbackName => 'AfterMessageBox' ); + + + diff --git a/rt-4.0.0-AfterMessageBox.patch b/rt-4.0.0-AfterMessageBox.patch new file mode 100644 index 0000000..4805449 --- /dev/null +++ b/rt-4.0.0-AfterMessageBox.patch @@ -0,0 +1,12 @@ +diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html +index de3461e..0c41491 100755 +--- a/share/html/Ticket/Update.html ++++ b/share/html/Ticket/Update.html +@@ -178,6 +178,7 @@ + % $IncludeSignature = 0 if $Action ne 'Respond' && !RT->Config->Get('MessageBoxIncludeSignatureOnComment'); + <& /Elements/MessageBox, Name=>"UpdateContent", IncludeSignature => $IncludeSignature, %ARGS &> + % } ++% $m->callback( %ARGS, CallbackName => 'AfterMessageBox' ); + + + <& /Ticket/Elements/AddAttachments, %ARGS, TicketObj => $TicketObj &> -- 2.11.0