ngiger / redmine_medelexis

A few goodies for the Medelexis MIS
GNU General Public License v2.0
1 stars 1 forks source link

Honor a possibly set due date for a trial license #6

Closed col-panic closed 10 years ago

col-panic commented 10 years ago

If a issue.due_date is set for a trial license, this date should be considered when creating the licens, if not use the default of 30 days

col-panic commented 10 years ago

Bitte übernehmen, danke!

col-panic commented 10 years ago

Der zweite commit fixed folgenden bug

NoMethodError (undefined method `strftime' for "2014-07-23+00:00":String):
  plugins/redmine_medelexis/lib/redmine_medelexis.rb:120:in `block in get_license'
  activerecord (3.2.17) lib/active_record/relation/delegation.rb:6:in `each'
  activerecord (3.2.17) lib/active_record/relation/delegation.rb:6:in `each'
  plugins/redmine_medelexis/lib/redmine_medelexis.rb:113:in `get_license'
  plugins/redmine_medelexis/lib/redmine_medelexis.rb:46:in `license_info_for_user'
  plugins/redmine_medelexis/app/controllers/license_controller.rb:44:in `find_license_info'
  plugins/redmine_medelexis/app/controllers/license_controller.rb:15:in `show'
  actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.17) lib/abstract_controller/base.rb:167:in `process_action