Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Prevent add or edit of CTimeInterval

In our situation, we want contractors to approve the time they have logged on their cases via Fogbugz. Once approved, we don't want them to be able to change the time intervals.

If I supply an event handler for OnTimeIntervalAdded, Edited, or Deleted, is it possible for me to prevent or rollback the operation? How would I do so?
Sean Winstead Send private email
Monday, December 28, 2009
 
 
Hi Sean-
You could implement IPluginTimeIntervalCommit and return false from TimeIntervalCommitBefore if the interval does not fit your criteria. Does that make sense?
Thanks!
Brett
Brett Kiefer Send private email
Tuesday, December 29, 2009
 
 
That makes sense *and* it works. It doesn't get much better than that. Thank you for the help.
Sean Winstead Send private email
Monday, January 4, 2010
 
 
Sure thing. Let us know if you run into any more trouble.
Brett Kiefer Send private email
Tuesday, January 5, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz