Redmine: install default_assign plugin on redmine 1.4.4

Trabla: install default_assign plugin on redmine 1.4.4

Environment:
1. OS - Ubuntu Linux
2. Ruby 1.9.3p194
3. Redmine  1.4.4
4. DB - MySQL

Redmine assign plugin:
https://github.com/giddie/redmine_default_assign.git

Solving:
1. By 2014-04-23  - there is issue in sources - not created column "default_assignee_id" in DB - table "projects". So it should be created manually.

ALTER TABLE projects ADD COLUMN default_assignee_id integer; 

2.  In old environment not implemented method "order" - so need to patch file to work with environment configuration

redmine_default_assign\app\views\settings\_default_assign.erb

Find:
users = Principal.active.order('firstname ASC')
Replace with:
users = Principal.active.find(:all, :order => 'firstname ASC' )

3. Same trable with method "persisted?"

redmine_default_assign\lib\default_assign_project_patch.rb

Find:
if not self.persisted?
Replace with:
if not !(new_record? || destroyed?)

That's all. Next install plugin.

For Redmine 1.x - goto plugin folder and run:

rake db:migrate_plugins RAILS_ENV=production



No comments:

Post a Comment