mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
make sure tracks does not crash on missing every_other2 for recurring todos
This commit is contained in:
parent
c769b2a7eb
commit
33af53c313
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
return 'weekly'
|
||||
end
|
||||
when 'monthly'
|
||||
return "invalid repeat pattern" if every_other1.nil?
|
||||
return "invalid repeat pattern" if every_other1.nil? || every_other2.nil?
|
||||
if self.recurrence_selector == 0
|
||||
return "every #{self.every_other2} month#{self.every_other2>1?'s':''} on day #{self.every_other1}"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue