[Bps-public-commit] rt-extension-timetracking branch support-rtir updated. 0.21-2-g2fd745e

BPS Git Server git at git.bestpractical.com
Wed Dec 22 19:03:15 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-timetracking".

The branch, support-rtir has been updated
       via  2fd745e0af071c26aeb220780c868776565c88ef (commit)
      from  27908f088534f07d3a6c9c42d74047d4b959182a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2fd745e0af071c26aeb220780c868776565c88ef
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Dec 23 03:00:07 2021 +0800

    Show "Worked Date" on incident reply/resolve pages
    
    The code is mainly from /Ticket/Elements/EditTransactionCustomFields.

diff --git a/html/Callbacks/RT-Extension-TimeTracking/RTIR/Incident/Reply/index.html/AfterTimeWorked b/html/Callbacks/RT-Extension-TimeTracking/RTIR/Incident/Reply/index.html/AfterTimeWorked
new file mode 100644
index 0000000..542dfc6
--- /dev/null
+++ b/html/Callbacks/RT-Extension-TimeTracking/RTIR/Incident/Reply/index.html/AfterTimeWorked
@@ -0,0 +1,29 @@
+<div class="form-row">
+  <div class="label col-2">
+    <span class="name <% $cf->EntryHint ? 'prev-icon-helper' : '' %>"><% $cf->Name %>:</span>\
+% if ( $cf->EntryHint ) {
+<span class="far fa-question-circle icon-helper" data-toggle="tooltip" data-placement="top" data-original-title="<% $cf->EntryHint %>"></span>
+% }
+  </div>
+  <div class="value col-8">
+    <& /Elements/EditCustomField,
+      %ARGS,
+      CustomField => $cf,
+      Object => RT::Transaction->new( $session{'CurrentUser'} ),
+    &>
+%   if (my $msg = $m->notes('InvalidField-' . $cf->Id)) {
+    <br />
+    <span class="cfinvalidfield"><% $msg %></span>
+%   }
+</div>
+
+<%INIT>
+my $cfs = $TicketObj->TransactionCustomFields();
+$cfs->Limit( FIELD => 'Name', VALUE => 'Worked Date', CASESENSITIVE => 0 );
+my $cf = $cfs->First or return;
+return unless $cf->CurrentUserHasRight('ModifyCustomField');
+</%INIT>
+
+<%ARGS>
+$TicketObj
+</%ARGS>

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

Summary of changes:
 .../RTIR/Incident/Reply/index.html/AfterTimeWorked | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 html/Callbacks/RT-Extension-TimeTracking/RTIR/Incident/Reply/index.html/AfterTimeWorked


hooks/post-receive
-- 
rt-extension-timetracking


More information about the Bps-public-commit mailing list