Skip to content

Commit

Permalink
Merge pull request #24 from jperelli/issue-23
Browse files Browse the repository at this point in the history
Fix for issue #23
  • Loading branch information
jperelli committed Sep 16, 2015
2 parents 6ae6f62 + baf98eb commit cee4de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name 'Redmine Periodictask plugin'
author 'Julian Perelli based on work from Tanguy de Courson'
description 'This is a plugin for Redmine2 that will allow you to schedule a task to be assigned on a schedule'
version '3.0.2'
version '3.0.3'
url 'http://github.com/jperelli/Redmine-Periodic-Task/'
author_url 'http://jperelli.com.ar/'

Expand Down
2 changes: 1 addition & 1 deletion lib/scheduled_tasks_checker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ScheduledTasksChecker
def self.checktasks!
Periodictask.all(:conditions=> ["next_run_date <= ? ", Time.now]).each do |task|
Periodictask.where("next_run_date <= ? ", Time.now).each do |task|

# replace variables (set locale from shell)
I18n.locale = ENV['LOCALE'] || I18n.default_locale
Expand Down

0 comments on commit cee4de4

Please sign in to comment.