[Bps-public-commit] rt-extension-timetracking-automatic branch, master, updated. 7edf5d23d124ff933ae32dcc6ec6d70a604ed158

Dave Goehrig dave at bestpractical.com
Wed Sep 14 13:55:49 EDT 2016


The branch, master has been updated
       via  7edf5d23d124ff933ae32dcc6ec6d70a604ed158 (commit)
      from  5414a8fd8249090fb326c4a45c38a6e825c6471b (commit)

Summary of changes:
 lib/RT/Extension/TimeTracking/Automatic.pm | 11 +++++++++++
 patches/patch-rtir-3.2.patch               | 13 +++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 patches/patch-rtir-3.2.patch

- Log -----------------------------------------------------------------
commit 7edf5d23d124ff933ae32dcc6ec6d70a604ed158
Author: Dave Goehrig <dave at bestpractical.com>
Date:   Wed Sep 14 13:55:06 2016 -0400

    Adding patch to support rtir 3.2

diff --git a/lib/RT/Extension/TimeTracking/Automatic.pm b/lib/RT/Extension/TimeTracking/Automatic.pm
index b9c50a4..e8bc386 100644
--- a/lib/RT/Extension/TimeTracking/Automatic.pm
+++ b/lib/RT/Extension/TimeTracking/Automatic.pm
@@ -39,6 +39,17 @@ you can set a config value to the number of minutes to add by default:
 
 This setting is optional and will default to 0 additional minutes.
 
+=item Patching RTIR
+
+If you are using RTIR-3.2 it is necessary to patch RTIR/Update.html to enable
+automatic time tracking:
+
+	patch -d /path/to/rtir -p1 < patches/patch-rtir-3.2.patch
+	cd /path/to/rtir && make install
+
+This will simply add a callback to the update ticket page, and is safe to leave
+should you disable automatic time tracking.
+
 =item Clear the mason cache
 
 To clear your cache run the following command:
diff --git a/patches/patch-rtir-3.2.patch b/patches/patch-rtir-3.2.patch
new file mode 100644
index 0000000..570ba3a
--- /dev/null
+++ b/patches/patch-rtir-3.2.patch
@@ -0,0 +1,13 @@
+diff --git a/html/RTIR/Update.html b/html/RTIR/Update.html
+index 4847cef..05736d9 100644
+--- a/html/RTIR/Update.html
++++ b/html/RTIR/Update.html
+@@ -109,6 +109,8 @@
+     ],
+ &>
+ 
++% $m->callback( %ARGS, CallbackName => 'AfterWorked', Ticket => $Ticket );
++
+ <& /Ticket/Elements/EditTransactionCustomFields,
+     %ARGS, TicketObj => $Ticket, InTable => 1,
+ &>

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list