Skip to content

Commit

Permalink
include ContributionResources on Asset edit form
Browse files Browse the repository at this point in the history
They will now render alongside Contributions under the Credits section
  • Loading branch information
bkiahstroud committed Dec 24, 2024
1 parent 6cf0b3b commit 15641f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/asset_resource_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def field_group_terms(group)
def child_contributors
child_contributions = []
model.members.to_a.each do |member|
if( member.class == Contribution )
if [Contribution, ContributionResource].include?(member.class)
child_contributions << [member.id, member.contributor_role, member.contributor.first , member.portrayal, member.affiliation]
end
end
Expand Down

0 comments on commit 15641f0

Please sign in to comment.