diff --git a/app/views/admin/education/programs/_static_list.html.erb b/app/views/admin/education/programs/_static_list.html.erb
index 831d928dcf6169469e3baa361b23165137d0a78c..824b7391f7a5d0b07687aba34956025919249425 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: