From 90897a24e51c95c7c5b1e986e560728b0f24a917 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 8 Jul 2024 13:02:11 +0200 Subject: [PATCH] Correctly set hidden_feedback for inherited files Without this fix, hidden_feedback was only effective when read_only was set, too. --- app/models/code_ocean/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/code_ocean/file.rb b/app/models/code_ocean/file.rb index 38b60bf2..42fc0c7a 100644 --- a/app/models/code_ocean/file.rb +++ b/app/models/code_ocean/file.rb @@ -136,7 +136,7 @@ module CodeOcean end def set_ancestor_values - %i[feedback_message file_type hidden name path read_only role weight].each do |attribute| + %i[feedback_message file_type hidden name path read_only role weight hidden_feedback].each do |attribute| send(:"#{attribute}=", ancestor.send(attribute)) end end