Skip to content

Commit

Permalink
custom fields fix and compatibility confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin committed Sep 2, 2022
1 parent a97a0ce commit c2b9775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/ready_footer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def roles

def custom
CustomValue.includes(:custom_field).where(
custom_field: {type: 'UserCustomField'},
custom_fields: {type: 'UserCustomField'},
customized_type: 'Principal',
customized_id: user.id)
.map{|custom| {custom.custom_field.name => custom.value.strip}}.reduce({}, :merge)
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
version '0.5.0'
url 'https://readyredmine.com'
author_url 'https://readyredmine.com'
requires_redmine :version_or_higher => '5.0.0'
requires_redmine :version => '4.1.0'..'5.0.2'
settings :default => {
'ready_footer' => false,
'ready_footer_body' => 'Best regards,<br>{first_name} {last_name}',
Expand Down

0 comments on commit c2b9775

Please sign in to comment.