Closed mrcave closed 7 months ago
Testing this at the moment, but looks like commenting out checks for $conversation->user_id = current $user->id
are at least allowing the timer to show up. Not sure if this has any implications on the way data is recorded if multiple users are tracking at one time.
In file /Modules/TimeTracking/Providers/TimeTrackingServiceProvider.php
...
Line 183 //$show_timer = false;
:
if ($conversation->user_id != $user->id
|| in_array($conversation->status, [Conversation::STATUS_CLOSED, Conversation::STATUS_SPAM])
) {
//$show_timer = false;
}
line 227 /*$conversation->user_id != $user->id ||*/
:
if (!count($timelogs) &&
(/*$conversation->user_id != $user->id ||*/ in_array($conversation->status, [Conversation::STATUS_CLOSED, Conversation::STATUS_SPAM]))
) {
return;
}
Update: those lines were not enough. Quite a few more instances of $conversation->user_id
that needed to be commented out or adjusted. Seems to be working now but still testing to ensure no DB conflicts.
We typically have a single user assigned to a conversation who may loop in other developers for advice. I'd like to be able to capture any non-assigned users' time spent on a ticket as well, but the time tracker currently only allows for the assigned user to track time.
Is it possible to allow any user to track time on a ticket if they are not assigned?
Thanks!