Skip to content

Commit

Permalink
Merge pull request #44 from onozaty/develop-2.3.0
Browse files Browse the repository at this point in the history
Develop 2.3.0
  • Loading branch information
onozaty authored Jun 26, 2019
2 parents 433cbff + d1b992b commit b455618
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ ViewCustomize = {
"name": "Project A",
"roles": [
{"id": 6, "name": "RoleX"}
],
"customFields": [
{"id": 4, "name": "[Project Custom field] Text", "value": "text"},
]
},
"issue": {
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ ViewCustomize = {
"name": "Project A",
"roles": [
{"id": 6, "name": "RoleX"}
],
"customFields": [
{"id": 4, "name": "[Project Custom field] Text", "value": "text"},
]
},
"issue": {
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name 'View Customize plugin'
author 'onozaty'
description 'View Customize plugin for Redmine'
version '2.2.0'
version '2.3.0'
url 'https://github.com/onozaty/redmine-view-customize'
author_url 'https://github.com/onozaty'

Expand Down
3 changes: 2 additions & 1 deletion lib/view_customize/view_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def create_view_customize_context(view_hook_context)
context["project"] = {
"identifier" => project.identifier,
"name" => project.name,
"roles" => user.roles_for_project(project).map {|role| { "id" => role.id, "name" => role.name }}
"roles" => user.roles_for_project(project).map {|role| { "id" => role.id, "name" => role.name }},
"customFields" => project.custom_field_values.map {|field| { "id" => field.custom_field.id, "name" => field.custom_field.name, "value" => field.value }}
}
end

Expand Down

0 comments on commit b455618

Please sign in to comment.