Defect #5

Setting an issue status as default status leads to an sql error.

Added by Didier Wenzek over 11 years ago. Updated almost 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution: Affected version:

Description

In the "Issue statuses" screen add a new status and check the "Default status" box.This leads to
an sql error:

SQLite3::SQLException: no such column: false: UPDATE issue_statuses SET is_default=false

Request Parameters: {"commit"=>"Save",
"issue_status"=>{"name"=>"DummyStatus", "is_default"=>"1",
"html_color"=>"FFFFFF", "is_closed"=>"0"},
"id"=>"6"}

I'm using :
  • redmine 0.4.0
  • config/environments/demo.rb
  • sqlite3.

Associated revisions

Revision 7803
Added by Toshi MARUYAMA almost 7 years ago

Ruby 1.9: add "encoding: utf-8" header at application_helper.rb

Following error raises in case that time log has non ASCII comments.

ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT)
 on line #5 of app/views/timelog/index.html.erb:
3: </div>
4:
5: <%= render_timelog_breadcrumb %>
6:
7: <h2><%= l(:label_spent_time) %></h2>

    app/helpers/application_helper.rb:407:in `join'
    app/helpers/application_helper.rb:407:in `breadcrumb'
    app/helpers/timelog_helper.rb:32:in `render_timelog_breadcrumb'
    app/views/timelog/index.html.erb:5

History

#1 Updated by Jean-Philippe Lang over 11 years ago

Fixed in the repository.
You can replace /app/models/issue_statuses.rb by this one:
http://rubyforge.org/viewvc/trunk/app/models/issue_status.rb?root
=redmine&view=markup
or wait for the 0.4.2 that should be released in the next days.

Best regards

Also available in: Atom PDF