Overriding a core functionality
Added by Eduardo Yáñez Parareda about 14 years ago
Hello,
I'd like to make a plugin that overrides a core functionality. I mean, I'd like my plugin changes the create issue form so Category is mandatory. How could I develop it?, is there a way to do it right?
Replies (1)
RE: Overriding a core functionality - Added by Gustavo Perdomo about 14 years ago
Hello,
I think that you can do it editing db/schema.rb and try to change the line "category_id" as mandatory:
@
create_table "issues", :force => true do |t|
t.integer "tracker_id", :default => 0, :null => false
t.integer "project_id", :default => 0, :null => false
t.string "subject", :default => "", :null => false
t.text "description"
t.date "due_date"
t.integer "category_id"
t.integer "status_id", :default => 0, :null => false
t.integer "assigned_to_id"
t.integer "priority_id", :default => 0, :null => false
t.integer "fixed_version_id"
t.integer "author_id", :default => 0, :null => false
t.integer "lock_version", :default => 0, :null => false
t.datetime "created_on"
t.datetime "updated_on"
t.date "start_date"
t.integer "done_ratio", :default => 0, :null => false
t.float "estimated_hours"
t.integer "parent_id"
t.integer "root_id"
t.integer "lft"
t.integer "rgt"
end
@