To reproduce
- Got to Site administration > Security > Module security
- Switch on 'Restrict modules for..' to 'all course'
- Tick 'Restrict modules by default'
- Select a few modules in the list and save
- Create a new course
- The restricted modules list appears in the course settings and is enabled but no modules are selected. The requested ones (in the admin page) should be selected.
I confirmed this in 2.2.3+ (Build: 20120519) and in the latest 2.0 branch. Not tried in 2.1 or master