Skip to content
Snippets Groups Projects
Unverified Commit f0e60e1a authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 90a5dfec
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Research::Journal < ApplicationRecord
has_many :websites, class_name: 'Communication::Website', as: :about, dependent: :nullify
has_many :volumes, foreign_key: :research_journal_id, dependent: :destroy
has_many :articles, foreign_key: :research_journal_id, dependent: :destroy
has_many :researchers, through: :articles
has_many :people, through: :articles
scope :ordered, -> { order(:title) }
......@@ -40,7 +40,7 @@ class Research::Journal < ApplicationRecord
end
def git_dependencies(website)
[self] + articles + volumes + researchers + researchers.map(&:researcher)
[self] + articles + volumes + people + people.map(&:researcher)
end
def git_destroy_dependencies(website)
......
......@@ -51,7 +51,7 @@ class Research::Journal::Volume < ApplicationRecord
end
def git_dependencies(website)
[self] + articles + researchers + researchers.map(&:researcher) + active_storage_blobs
[self] + articles + people + people.map(&:researcher) + active_storage_blobs
end
def git_destroy_dependencies(website)
......
......@@ -41,7 +41,7 @@
<p><%= @article.keywords %></p>
<% end %>
<% if @article.people.any? %>
<h3 class="h5"><%= Research::Journal::Article.human_attribute_name('researchers') %></h3>
<h3 class="h5"><%= Research::Journal::Article.human_attribute_name('people') %></h3>
<ul class="list-unstyled mb-0">
<% @article.people.each do |person| %>
<li><%= link_to person, admin_research_researcher_path(person) %></li>
......
......@@ -33,7 +33,7 @@ en:
published: Published?
published_at: Published at
references: References
persons: Authors
people: Authors
text: Text
title: Title
research/journal/volume:
......
......@@ -33,7 +33,7 @@ fr:
published: Publié ?
published_at: Publié le
references: Références
persons: Auteu·rs·rices
people: Auteu·rs·rices
text: Texte
title: Titre
research/journal/volume:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment