[Bps-public-commit] rt-extension-timetracking branch, master, updated. 733f9581b449d117d4b90c8360d48077423a91a8

Dave Goehrig dave at bestpractical.com
Wed Apr 12 10:15:38 EDT 2017


The branch, master has been updated
       via  733f9581b449d117d4b90c8360d48077423a91a8 (commit)
      from  c0138a7f26d97c3172259a8f0432bd62ecfbbc57 (commit)

Summary of changes:
 .../RT-Extension-TimeTracking/Ticket/Elements/ShowBasics/EndOfList   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 733f9581b449d117d4b90c8360d48077423a91a8
Author: Dave Goehrig <dave at bestpractical.com>
Date:   Wed Apr 12 10:13:41 2017 -0400

    Remove per User listing for 4.4.0 and greater
    
    Since RT-4.4.0 introduced main line per user
    time worked tracking under the Users: field
    in Basics, rendering this section is redundant.

diff --git a/html/Callbacks/RT-Extension-TimeTracking/Ticket/Elements/ShowBasics/EndOfList b/html/Callbacks/RT-Extension-TimeTracking/Ticket/Elements/ShowBasics/EndOfList
index c714913..43ee5d6 100644
--- a/html/Callbacks/RT-Extension-TimeTracking/Ticket/Elements/ShowBasics/EndOfList
+++ b/html/Callbacks/RT-Extension-TimeTracking/Ticket/Elements/ShowBasics/EndOfList
@@ -57,7 +57,10 @@ input#<% $cf_style %> {
   </td>
 </tr>
 
-% if ( $TicketObj->TimeWorked ) {
+% # Render if less than RT 4.4.0, (which includes per user time)
+% $RT::VERSION =~ /(\d+)\.(\d+)\.(\d+)/;
+% my $version = ($1*1000+$2);
+% if ( ($version < 4004) && $TicketObj->TimeWorked ) {
 <tr class="time worked">
     <td class="label"><&|/l&>Worked</&>:</td>
     <td>

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


More information about the Bps-public-commit mailing list