From 17aa8f13458730d5595862869cd4de80d64c3435 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 30 Jan 2024 12:12:16 +0100 Subject: [PATCH] Fix #1593 --- app/views/admin/education/programs/_static_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/education/programs/_static_list.html.erb b/app/views/admin/education/programs/_static_list.html.erb index 831d928dc..824b7391f 100644 --- a/app/views/admin/education/programs/_static_list.html.erb +++ b/app/views/admin/education/programs/_static_list.html.erb @@ -9,7 +9,7 @@ indentation = ' ' * depth <% children = program.children.where(diploma: diploma) # Limit to a global list of programs, for example on a location -children = children.where(id: all_programs) if all_programs +children = children.where(id: all_programs) if local_assigns[:all_programs] %> <% if children.any? %> <%= indentation %> children: -- GitLab