maxrossello / redmine_app_timesheets

A true timesheet plugin using orders, not bound to timelogs over issues
GNU General Public License v2.0
32 stars 10 forks source link

daily hours limit #85

Closed fafnir1990 closed 6 years ago

fafnir1990 commented 6 years ago

Hello I know that my question is ridiculous, but I need to set spent_time value greater than 999 :( (Your plugin is so useful and could be adapted to other areas of evidence)

That problem may be also connected with "Spent time" application , because there is also impossible to add more than 999 hours to journal. Did you ever encounter such problem? Could you help with increasing value limit of "spent time"?

I use 1.5 version Best regards Rafał Processing by TimesheetsController#save_period as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+1R/AK64SKhckF7xQMRu+dl489RqxsNQ8qSKqpJTlx6PEw1HgVefoma+YszYGPoyEmxe1IjclRXSLaG0tZv8Rg==", "user_id"=>"57", "day"=>"2017-11-21T00:00:00+00:00", "view"=>"week", "order"=>["185", "166", "184", "83"], "previous_activity"=>["14", "8", "14", "8"], "activity"=>["14", "8", "14", "8"], "issue"=>["", "", "", ""], "hours"=>{"2017-11-01"=>["", "", "", ""], "2017-11-02"=>["", "", "9.0", ""], "2017-11-03"=>["7777.0", "6.0", "", ""], "2017-11-04"=>["", "", "", ""], "2017-11-05"=>["", "", "", ""], "2017-11-06"=>["", "", "", "7.0"], "2017-11-07"=>["66.0", "", "", ""], "2017-11-08"=>["45.0", "", "", ""], "2017-11-09"=>["8.0", "", "", ""], "2017-11-10"=>["123.0", "", "", ""], "2017-11-11"=>["", "", "", ""], "2017-11-12"=>["", "", "", ""], "2017-11-13"=>["999.0", "", "", ""], "2017-11-14"=>["", "", "", ""], "2017-11-15"=>["1.23", "", "", ""], "2017-11-16"=>["", "", "", ""], "2017-11-17"=>["", "", "", ""], "2017-11-18"=>["", "", "", ""], "2017-11-19"=>["", "", "", ""], "2017-11-20"=>["", "", "", ""], "2017-11-21"=>["", "", "", ""], "2017-11-22"=>["", "", "", ""], "2017-11-23"=>["", "", "", ""], "2017-11-24"=>["", "", "", ""], "2017-11-25"=>["", "", "", ""], "2017-11-26"=>["", "", "", ""], "2017-11-27"=>["", "", "", ""], "2017-11-28"=>["", "", "", ""], "2017-11-29"=>["", "", "", ""], "2017-11-30"=>["", "", "", ""]}, "commit"=>"Zapisz"} Current user: xxx (id=57) Completed 422 Unprocessable Entity in 137ms (ActiveRecord: 86.8ms) ActiveRecord::RecordInvalid (Validation failed: Godzin jest nieprawidłowe): plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:107:inblock (2 levels) in save_period' plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:59:in block in save_period' plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:53:ineach' plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:53:in each_with_index' plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:53:insave_period' lib/redmine/sudo_mode.rb:63:in sudo_mode'