TimeWorked per user does not work in 4.4.1 (from Debian)

I have one ticket with multiple transaction with TimeTaken >0 records from same user
For example:
user1 - 5 min
user1 - 10 min
user1 - 5 min

In ticket basics I see
Timeworked: 20 min
Users: user1: 5 min
I.e. peruser stats shows only first or last transaction time and not all.

PS. If I comment line
"my $time_worked_attr = $Ticket->FirstAttribute(‘TimeWorked’);"
from /usr/share/request-tracker4/html/Ticket/Elements/ShowBasics
then peruser stats work correctly as far as I can see.

That attribute holds the calculated time worked data for each user. We’ve become aware of cases where that cached data doesn’t get updated for every possible way to update TimeWorked as you have seen. We’re currently doing testing to determine the performance profile of generating those values dynamically rather than using the cached attribute value.

Ok, Thank You
Will wait for updates.

PS. Our test DB upgraded from 4.2.8 so I think that this attribute does not updated in the upgrade process.

I do have the very same display on 4.4.1 upgraded from 4.0
All the information is correctly stored (using time worked report), ony the display is incorrect showing the last time transation

I use this patch now

--- /usr/share/request-tracker4/html/Ticket/Elements/ShowBasics.or      2017-04-07 00:44:16.119937294 +0300
+++ /usr/share/request-tracker4/html/Ticket/Elements/ShowBasics 2017-03-24 12:37:31.054843339 +0300
@@ -126,11 +126,11 @@
 my $time_worked;
 my $show_time_worked = $Ticket->CurrentUserCanSeeTime;
 if ( $show_time_worked && $Ticket->TimeWorked ) {
-    my $time_worked_attr = $Ticket->FirstAttribute('TimeWorked');
+#    my $time_worked_attr = $Ticket->FirstAttribute('TimeWorked');

-    if ($time_worked_attr) {
-        $time_worked = $time_worked_attr->Content;
-    } else {
+#    if ($time_worked_attr) {
+#        $time_worked = $time_worked_attr->Content;
+#    } else {
         $time_worked = {};
         my $transactions = $Ticket->Transactions;
         $transactions->Limit(
@@ -159,7 +159,7 @@
               || $txn->NewValue - $txn->OldValue;
         }
         $Ticket->SetAttribute( Name => 'TimeWorked', Content => $time_worked );
-    }
+#    }
 }

 </%init>

thanks @mkosmach the patch does the job !