Closed (fixed)
Project:
Time Tracker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2013 at 18:22 UTC
Updated:
12 Jun 2015 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chertzogI've implemented some new handling of the time tracker form and content to better respect permissions. For your case, just dont give the people that wont be adding time entries the "add time tracker entries" permission.
Comment #3
bwoods commentedThanks for doing this, I will try it out.
I think it's also possible that people entering time on comments may not need to enter time for each comment. For instance, if two developers are working on a project, and one just wants to comment to assign to someone else (in my case, I'm using the support module), this wouldn't need time associated with it.
I currently have a small hack at the top of time_tracker_comment_insert to check for $comment->duration, and if empty, just return. In your entity settings, you could theoretically have a checkbox to require time, but this might be such an edge case that it's best to keep out of your module altogether (since the objective is to track time, so why would you NOT want to track time, right?).
Comment #4
bwoods commented(omitted)
Comment #5
bwoods commentedI've gone ahead and created a patch for this - while it may not be accepted, I figured others may find it useful if they have the same edge case as me. Thanks!