Closed msm4311 closed 2 years ago
Time entry as an observable object has been there since v0.1.6.
Hi,
Use this code in BEFORE SAVE section at Time Entry object:
errors.add(:base,"Time entry registration is not allowed for such an old date!") if spent_on.present? && self.spent_on < (Time.now - 2.days)
Do not forget to change the number of days. In the example code I used 2 days --> (Time.now - 2.days)
I hope it helps!
Great @AirTibu Many Thanks
I need to block log time entries for issues older than a certain date but I can't see a "time entries" observable object on this plugin. ¿Anyone can suggest how to do it?
Thanks