OSDN Git Service

User custom fields can now be set as editable so that users can edit them on 'My...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 17 Jan 2009 11:18:04 +0000 (11:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 17 Jan 2009 11:18:04 +0000 (11:18 +0000)
commit12792d8068d0ed0514e89267edefaab4df5cf2c3
tree64aac7c729949cee91a3fb05070487870dbbccfc
parent99c2e989751a84b36d47de8cbe82572a61c4aa23
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
40 files changed:
app/controllers/my_controller.rb
app/models/custom_value.rb
app/views/account/register.rhtml
app/views/custom_fields/_form.rhtml
app/views/my/account.rhtml
db/migrate/102_add_custom_fields_editable.rb [new file with mode: 0644]
db/migrate/103_set_custom_fields_editable.rb [new file with mode: 0644]
lang/bg.yml
lang/ca.yml
lang/cs.yml
lang/da.yml
lang/de.yml
lang/en.yml
lang/es.yml
lang/fi.yml
lang/fr.yml
lang/he.yml
lang/hu.yml
lang/it.yml
lang/ja.yml
lang/ko.yml
lang/lt.yml
lang/nl.yml
lang/no.yml
lang/pl.yml
lang/pt-br.yml
lang/pt.yml
lang/ro.yml
lang/ru.yml
lang/sk.yml
lang/sr.yml
lang/sv.yml
lang/th.yml
lang/tr.yml
lang/uk.yml
lang/vn.yml
lang/zh-tw.yml
lang/zh.yml
test/fixtures/custom_fields.yml
test/functional/my_controller_test.rb