User custom fields can now be set as editable so that users can edit them on 'My account'.

For existing user custom fields, this new attribute is set to false by default to preserve the prior behaviour (it can turned on by editing the custom field in admin area).

Note: on the registration form, *required* custom fields will be displayed even if they are not defined as editable so that the account can be created.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2276 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-17 11:18:04 +00:00
parent 99c2e98975
commit 12792d8068
40 changed files with 90 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
class SetCustomFieldsEditable < ActiveRecord::Migration
def self.up
UserCustomField.update_all('editable = false')
end
def self.down
UserCustomField.update_all('editable = true')
end
end