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

Internal error after pressing "Save" button #2

Closed grinkod closed 10 years ago

grinkod commented 10 years ago

Hi! I have tested new build of the plugin and got the following situation:

  1. I configured the plugin (set the project and tracker)
  2. Added and assign issues for the user
  3. Open "Timesheet" page and using order dropdown choose version, activity and issue.
  4. After i pressed "Save" the "Internal error" page occurred Logs from server:

Processing by TimesheetsController#index as HTML Parameters: {"order"=>"1", "issue"=>"5", "newrow"=>"true", "utf8"=>"✓", "activity"=>"9", "commit"=>"Save"} Current user: admin (id=1) Completed 500 Internal Server Error in 115.7ms

NameError (undefined local variable or method order' for #<TimesheetsController:0x85a4cb0>): plugins/redmine_app_timesheets/app/controllers/timesheets_controller.rb:296:inget_timelogs' activesupport (3.2.16) lib/active_support/callbacks.rb:517:in _run__102816247__process_action__1568089879__callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:405:insend' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.16) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:81:in send' activesupport (3.2.16) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.16) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.16) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.2.16) lib/active_support/notifications.rb:123:ininstrument' activesupport (3.2.16) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.16) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.16) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.16) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.16) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.16) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.16) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.16) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.16) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.16) lib/action_controller/metal.rb:246:inaction' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:incall' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.16) lib/action_dispatch/routing/route_set.rb:608:in call' rack-openid (1.4.1) lib/rack/openid.rb:99:incall' actionpack (3.2.16) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.16) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.16) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.16) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.16) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.16) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.16) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:28:incall' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in _run__1011366221__call__4__callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:405:insend' activesupport (3.2.16) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.16) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.16) lib/active_support/callbacks.rb:81:in send' activesupport (3.2.16) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.16) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.16) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.16) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.16) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.16) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.16) lib/rails/rack/logger.rb:16:incall' activesupport (3.2.16) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.16) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.16) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.16) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.16) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.16) lib/rails/engine.rb:484:incall' railties (3.2.16) lib/rails/application.rb:231:in call' rack (1.4.5) lib/rack/content_length.rb:14:incall' railties (3.2.16) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.5) lib/rack/handler/webrick.rb:59:inservice' /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/webrick/httpserver.rb:65:inrun' /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/webrick/server.rb:162:instart' /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/webrick/server.rb:162