Reinier Balt
6e97541ab3
make sure toggle_check and deleting of todos, recurring_todos and projects work in the new done views
2011-07-09 17:21:36 +02:00
Reinier Balt
056dbf08a7
remove vendored gem and fix state model. Some old hacks did not work anymore on the newer aasm. reverted the hacks and fixed some tests
2011-06-10 23:17:22 +02:00
Stefan Richter
00819ce27b
migrating to aasm - code part
2011-06-10 23:17:19 +02:00
Reinier Balt
f05826d07a
fix #1169 and also improve i18n on repeating todos
2011-05-08 20:37:47 +02:00
Reinier Balt
bf15175c7b
fix #895 by clearing the repeat pattern from todos before the pattern is deleted
...
cherry-picked from 1.7branch
2010-08-19 11:28:34 +02:00
Reinier Balt
3d75cd2457
Fix #1045 . The tests broke because of this fix cfc6d117b8. This exposed a new corner case that I fixed and created a test for. Also a small refactoring.
2010-07-29 16:37:22 +02:00
Reinier Balt
cfc6d117b8
fix #1027 . Several tests were broken because of the more strict validations on the recurring_todo model
2010-05-13 18:24:26 +02:00
Reinier Balt
5c25e4569e
fix #1002 . every nth week was off by one week for recurring weekly todos. Thanks Thomas for spotting this.
...
Updated the wrong test too.
2010-05-02 18:16:29 +02:00
Reinier Balt
8bc3a484b2
fix 1018. Added validations for the recurring target of recurring todos
2010-05-02 16:41:45 +02:00
Reinier Balt
06ac3067d3
fix validations for daily pattern and fix disappearing target fields for recurring todos
2010-04-23 17:13:03 +02:00
Reinier Balt
38f0cf1b7a
adds extensive validation to recurring todos. Fixes #967
2010-04-23 16:51:35 +02:00
Reinier Balt
33af53c313
make sure tracks does not crash on missing every_other2 for recurring todos
2010-04-19 14:05:02 +02:00
Reinier Balt
e15425d546
if every_other1 is not filled in for recurring patterns, things start to fall apart. Added basic checks.
2010-04-14 09:15:02 +02:00
Reinier Balt
c3b3e3ea04
Manual apply fix from 1.7_branch. Preserve database integrity for recurring todos when deleting project or context. Fixes #880 . Fixes #895
2010-04-04 18:20:07 +02:00
piglop
4e1e18da0f
fixed #781 :
...
* added a "show always" radio to the recurring todo forms
* added a show_always flag to recurring todos
* created a migration to convert existing recurring todos where show_from_delta==0
* recurring todos where show_from_delta is 0 are now shown the same day they're due
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-06-03 01:36:20 +08:00
Reinier Balt
239b38cb15
fix for the two issues in #852
...
* the end date is prefilled with an incorrect formatted date
* if the radio for ends_on is not selected, but a date is entered, tracks incorrectly behaves as if ends_on was checked
2009-04-01 13:51:36 +02:00
Reinier Balt
0e68ded56a
fix tags and fix tests
2008-12-22 23:26:38 +01:00
Reinier Balt
c618d35d3a
first pass at restoring tag functionality
2008-12-22 20:55:32 +01:00
Reinier Balt
c5598a94ee
fix small bug where a check was done on a wrong value
2008-12-18 10:17:16 +01:00
Reinier Balt
c46e5a9e1d
show recurrence pattern in :title of a recurring todo. Needed slight refactoring to make it happen
2008-12-08 16:59:10 +01:00
Reinier Balt
9d246f70cd
Fix #795 .
...
Similar hack as f43447e33f
2008-11-29 15:55:16 +01:00
Reinier Balt
4a98ee5669
several fixes to recurring todos and adds some named_scopes
...
fixes case where unmarking a complete todo which belongs to a recurring pattern results in two todos that both keep on recurring. With this fix a new todo will only be created when there are no active todos left belonging to that recurring pattern
fixes tests that failed because of previous commits
adds some named_scopes, inspired by http://railscasts.com/episodes/108
2008-11-28 16:39:50 +01:00
Reinier Balt
f43447e33f
added workaround for strange timezone behaviour
2008-11-27 15:48:20 +01:00
Reinier Balt
a3f23c60e4
fixes #786 where timezone handling of RoR screwed the algorithm to find the last sunday of march in 2009
...
Fix is a bit of a hack, see #786 for futher explanation.
2008-10-22 10:16:31 +02:00
Reinier Balt
ce671f23f4
fix bug introduced by last commit and add test for it
...
also refactor check_for_next_todo a bit to depend less on globals
2008-10-14 22:49:17 +02:00
Reinier Balt
c64bbb9e60
fix corner case for yearly repeating todos
...
also adds test for this case
2008-10-14 10:57:12 +02:00
Eric Allen
3647d79587
Overhaul of Time.now stuff because Time.now is unaware of time zones. Need to use Time.zone.now (Time.now.utc works fine when dealing with the database, since it is *always* in UTC)
2008-09-21 18:13:21 -07:00
Reinier Balt
88ea02d29a
fix case with future start_from for other recurrence periods too
...
this patch belongs to previous
2008-08-19 22:04:53 +02:00
Reinier Balt
f4378ffde1
fix case where future start_from was ignored for yearly recurrence patterns
2008-08-19 21:25:25 +02:00
Reinier Balt
9acb01e9cb
fix issue where deleting a recurring todo from tickler results in an error
2008-08-01 15:37:10 +02:00
Reinier Balt
6b0a235275
attempt to fix creation of new recurring todo where selector attributes are posted later than other attributes
...
also fixes some issues when editing an existing rec todo wich handling nil values
2008-07-28 14:06:39 +02:00
Reinier Balt
ed4ee1cc3f
fix several issues with recurring todos
...
* fix case where some fields were not saved
* fix several fields that were not filled with the saved value when editing
* hide storage details of recurring_todo by adding public getters and refactoring view to use them in stead of database fields
2008-07-27 22:13:54 +02:00
Reinier Balt
8bc41e2cb0
add recurring todos to tracks
2008-07-19 20:27:45 +02:00