gjbarnard / moodle-format_grid

Grid course format contributed by Gareth J Barnard originally created by Paul Krix
GNU General Public License v3.0
21 stars 56 forks source link

Course sections outside the "Number of sections" setting are not able to use the "Hidden & Make Available" options. #196

Closed Syxton closed 8 months ago

Syxton commented 12 months ago

Describe the bug "Make Available" is not possible in course sections of a higher number than the course sections that are actually in the course.

To Reproduce Steps to reproduce the behaviour:

  1. Create a course with 10 sections.
  2. Make an activity in the 10th section.
  3. Change the course format "Number of sections" to less than 10.
  4. Hide the activity in section 10.
  5. Attempt to make the activity "Available"

Expected behaviour All course options are still available for all activities in the course.

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

Additional context The expected behavior of changing the "Number of sections" is to add more sections or "remove empty / orphan" sections.

gjb2048 commented 12 months ago

@Syxton

When was it ever possible to do so in an orphaned section?

"The expected behavior of changing the "Number of sections" is to add more sections or "remove empty / orphan" sections." = no, it works that way already, only removing sections if they don't contain content. If there is content in a section that is greater than the number of sections then that section needs to be an orphan.

gjb2048 commented 12 months ago

Note: M4.3 seems to have removed the "Hidden & Make Available" option.

Syxton commented 12 months ago

@gjb2048 We are running Moodle 4.2.3+ and the latest grid release. If I have 10 sections with content, and I change the grid Number of Sections to 8. There is nothing telling the teacher or the student that these sections are now orphaned. In fact the students can still access the content in these sections. The only difference I can see is that you lose the Availability options in those sections.

4.3 still has the options, just prettier menus.
image

gjb2048 commented 12 months ago

@Syxton Course formats have no control / ability to change module code. They can only change the sections, add functionality to the course and control the layout of the sections.

gjb2048 commented 12 months ago

Can't alter the menu options for the modules, so apply neural net solution initiated by warning message.