Skip to content
Snippets Groups Projects
Unverified Commit 3c1a4205 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Réparation de la réparation des dépendances de catégories (#2639)

parent 6bcd3c23
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ class Communication::Website::Agenda::Category < ApplicationRecord
end
def dependencies
super +
[parent] +
localizations.in_languages(website.active_language_ids) +
[website.config_default_content_security_policy]
end
......
......@@ -48,7 +48,7 @@ class Communication::Website::Page::Category < ApplicationRecord
end
def dependencies
super +
[parent] +
localizations.in_languages(website.active_language_ids) +
[website.config_default_content_security_policy]
end
......
......@@ -46,7 +46,7 @@ class Communication::Website::Portfolio::Category < ApplicationRecord
end
def dependencies
super +
[parent] +
localizations.in_languages(website.active_language_ids) +
[website.config_default_content_security_policy]
end
......
......@@ -46,7 +46,7 @@ class Communication::Website::Post::Category < ApplicationRecord
end
def dependencies
super +
[parent] +
localizations.in_languages(website.active_language_ids) +
[website.config_default_content_security_policy]
end
......
......@@ -30,9 +30,8 @@ class Education::Program::Category < ApplicationRecord
alias :category_objects :programs
def dependencies
super +
localizations +
[website.config_default_content_security_policy]
[parent] +
localizations
end
def references
......
......@@ -32,9 +32,8 @@ class University::Organization::Category < ApplicationRecord
alias :category_objects :organizations
def dependencies
super +
localizations +
[website.config_default_content_security_policy]
[parent] +
localizations
end
def references
......
......@@ -31,9 +31,8 @@ class University::Person::Category < ApplicationRecord
alias :category_objects :people
def dependencies
super +
localizations +
[website.config_default_content_security_policy]
[parent] +
localizations
end
def references
......
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