It would be very useful if the status of the comment time could be toggled between 'Excluded from node total time' and 'Included in node total time'. As the status names suggest: an excluded comment time would not appear in the total node time.

Use case:
We use Comment timer to account for the time spent on our work. If the worker does something he does not want to get paid for but still wants to keep a record of this time he or she could set the status to 'excluded'.

Patch is coming.

Comments

czigor’s picture

Status: Active » Needs review
StatusFileSize
new7.08 KB

The patch adds a new 'status' column to the {comment_timer_comment} table and modifies the comment_timer form by adding a 'status' select box.

czigor’s picture

If you commit this please don't forget to add
--author="czigor <czigor@826222.no-reply.drupal.org>"
to the git commit command.

czigor’s picture

StatusFileSize
new7.93 KB
new792 bytes

Views integration of the comment timer status column was left out.

czigor’s picture

StatusFileSize
new11.88 KB
new4.08 KB

Patch now includes an ajax link that can be added to the comment display as an extra field to toggle the status of the comment time.

czigor’s picture

StatusFileSize
new11.88 KB
new1.72 KB

Some leftover project-specific strings replaced.

czigor’s picture

StatusFileSize
new12.7 KB
new3.01 KB

The new patch has the following changes:

  1. Changes and documents hook_comment_timer_commands_alter().
  2. Using #attached instead of drupal_add_js().
  3. nojs-case goes to node/[nid]#comment-[cid]
  4. A coding standards fix
boobaa’s picture

Status: Needs review » Fixed

Thanks for disturbing me on IRC and Skype about this, finally I committed it. Additionally, you've earned maintainer status on this module as well. ;)

The only nitpick is that the new {comment_timer_comment}.status field lacked any indices. This has been fixed in 0b6035a.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.