When deleting a row from the timesheet the following error occured:
Started DELETE "/apps/timesheets/delete_row?activity_id=72&order_id=2" for 115.42.16.233 at 2015-09-18 11:31:24 +0000
2015-09-18T11:31:24.769414+00:00 app[web.1]: Completed 500 Internal Server Error in 33ms (ActiveRecord: 10.7ms)
2015-09-18T11:31:24.739295+00:00 app[web.1]: Current user: admin (id=2)
2015-09-18T11:31:24.735846+00:00 app[web.1]: Processing by TimesheetsController#delete_row as HTML
2015-09-18T11:31:24.735862+00:00 app[web.1]: Parameters: {"authenticity_token"=>"XX", "activity_id"=>"72", "order_id"=>"2"}
2015-09-18T11:31:24.770471+00:00 app[web.1]: NoMethodError (undefined method `destroy' for #Array:0x007f59cae60a70):
This change destroys each entry in the array sequentially. It's probably slower than doing it in the database but it works.
Environment: Redmine version: 3.1.0.stable Ruby version: 2.2.1-p85 (2015-02-26) [x86_64-linux] Rails version: 4.2.4 Environment: production Database adapter: Mysql2 Redmine plugins: redmine_app__space: 1.0.3 redmine_app_timesheets: 1.5.3
When deleting a row from the timesheet the following error occured:
Started DELETE "/apps/timesheets/delete_row?activity_id=72&order_id=2" for 115.42.16.233 at 2015-09-18 11:31:24 +0000 2015-09-18T11:31:24.769414+00:00 app[web.1]: Completed 500 Internal Server Error in 33ms (ActiveRecord: 10.7ms) 2015-09-18T11:31:24.739295+00:00 app[web.1]: Current user: admin (id=2) 2015-09-18T11:31:24.735846+00:00 app[web.1]: Processing by TimesheetsController#delete_row as HTML 2015-09-18T11:31:24.735862+00:00 app[web.1]: Parameters: {"authenticity_token"=>"XX", "activity_id"=>"72", "order_id"=>"2"} 2015-09-18T11:31:24.770471+00:00 app[web.1]: NoMethodError (undefined method `destroy' for #Array:0x007f59cae60a70):
This change destroys each entry in the array sequentially. It's probably slower than doing it in the database but it works.
Adam