Project

General

Profile

Help with Private Issues #337

Added by Tim Vazquez over 13 years ago

I applied the patch for issue #337 to add private issues to redmine v1.0.0
Everything works great, except that the is_private param is not passed to the SQL insert statement. So this checkbox in the issue form is not saved
If I create an Issue and want it private, I need to hand edit the database to set the private flag to 1
Every other part of the patch seems to be working fine (show/hide based on permissions)

I see that issues.rb has been updated alot since the original patch was created, so if someone could please point me in the right direction to get the current params passed to the insert statement. Below is a snippet from redmine's log showing the paramas and resulting insert statement.

Parameters: {"project_id"=>"ma", "commit"=>"Create", "action"=>"create", "authenticity_token"=>"qg", "controller"=>"issues", "issue"=>{"start_date"=>"2010-09-02", "estimated_hours"=>"", "is_private"=>"1", "priority_id"=>"4", "subject"=>"test private", "fixed_version_id"=>"3", "category_id"=>"12", "description"=>"", "tracker_id"=>"1", "done_ratio"=>"0", "due_date"=>"", "assigned_to_id"=>"3", "status_id"=>"2"}

INSERT INTO `issues` (`created_on`, `start_date`, `project_id`, `estimated_hours`, `updated_on`, `is_private`, `priority_id`, `lock_version`, `lft`, `subject`, `tracker_id`, `description`, `category_id`, `fixed_version_id`, `root_id`, `due_date`, `assigned_to_id`, `done_ratio`, `status_id`, `author_id`, `parent_id`, `rgt`) VALUES