tkusukawa / kusu

Automatically exported from code.google.com/p/kusu
0 stars 0 forks source link

Delete holiday error. #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a holiday on one day.
2.Try to delete the holiday
3.

What is the expected output? What do you see instead?
Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine 
administrator for assistance.

What version of the product are you using? On what operating system?
Worktime 0.1.2 (r228)on Redmine 1.2.1 hosted on a ubuntu server.

Please provide any additional information below.
I get the following trace on the production.log trace file:

Processing WorkTimeController#show (for 192.168.0.144 at 2011-09-12 08:07:52) 
[GET]
  Parameters: {"month"=>"9", "action"=>"show", "del_holiday"=>"2011-09-12", "id"=>"idx", "day"=>"12", "year"=>"2011", "controller"=>"work_time", "user"=>"3"}

ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'id' in 'where 
clause': UPDATE `wt_holidays` SET `deleted_by` = 3, `deleted_on` = '2011-09-12 
08:07:52' WHERE `id` = NULL):
  vendor/plugins/redmine_work_time/app/controllers/work_time_controller.rb:495:in `set_holiday'
  vendor/plugins/redmine_work_time/app/controllers/work_time_controller.rb:492:in `each'
  vendor/plugins/redmine_work_time/app/controllers/work_time_controller.rb:492:in `set_holiday'
  vendor/plugins/redmine_work_time/app/controllers/work_time_controller.rb:41:in `show'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/bitnami/apps/redmine/public/500.html (500 Internal Server Error)

Original issue reported on code.google.com by julius...@gmail.com on 12 Sep 2011 at 8:16

GoogleCodeExporter commented 9 years ago
thanks for your report.

I try to produce this error, but I can't.
Please tell me the detailed operation.

Is this error occured without other plugins?

Original comment by T.Kusukawa on 18 Sep 2011 at 2:39

GoogleCodeExporter commented 9 years ago
Thank you for your time.
This are the installed plugins on redmine:

Redmine Backlogs A plugin for agile teams   relaxdiego, friflaj     master branch 
(unstable)  Configurar

Redmine Close Button plugin This is the Close Issue button plugin for Redmine 
http://github.com/Undev/redmine_close_button    akzhan.abdulin@gmail.com    0.0.4   

Redmine Dnoise Workload plugin This is a plugin for Redmine Workload    Dnoise 
Rafael Calleja  0.0.1   

Mylyn Connector plugin This plugin provides a webservice API for Eclipse Mylyn 
(RESTful)   Sven Krzyzak    2.7.4.stable    

Redmine Work Time plugin A plugin to view and update TimeEntry by each user 
    Tomohisa Kusukawa   0.1.2

Unfortunately I don't have a clean setup to test it, I will try to find some 
time to do it.

Original comment by julius...@gmail.com on 29 Sep 2011 at 8:37