Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore skips sections if hidden sections are present #216

Open
Syxton opened this issue Aug 21, 2024 · 9 comments
Open

Restore skips sections if hidden sections are present #216

Syxton opened this issue Aug 21, 2024 · 9 comments
Assignees
Labels
Bug Pending replication Triaged Issue read and is on backlog

Comments

@Syxton
Copy link

Syxton commented Aug 21, 2024

Describe the bug
If a course contains hidden sections between visible sections, the visible sections that are after the hidden sections will not be restored.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a course with 7 sections.
  2. Place content in all 7 sections.
  3. Hide sections 3 and 4
  4. Backup and Restore as a new course.
  5. I am seeing section 1-4 correctly, but section 5 is empty and the course format is counting only visible sections and is set to 5 so Section 6-7 (also empty) are not shown at all.

Expected behaviour
The restored course should look exactly like the original course.

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

Versions (please complete the following information):

  • Moodle: 4.2
  • Format: Grid

Workaround:

  • Before backing up original course, either unhide all hidden sections OR move hidden sections to the bottom of the course.
@gjb2048 gjb2048 added the Triaged Issue read and is on backlog label Aug 21, 2024
@gjb2048
Copy link
Collaborator

gjb2048 commented Aug 21, 2024

@Syxton What version of Grid please?

@Syxton
Copy link
Author

Syxton commented Aug 21, 2024

@gjb2048 Sorry. we are running 402.2.2

We are updated to Moodle 4.4.2+ tomorrow and will be on grid 404.1.0 then. Doesn't seem to be an issue in my testing in that version.

@gjb2048
Copy link
Collaborator

gjb2048 commented Aug 21, 2024

Could it be related to #202 that was fixed in 402.2.3?

@gjb2048
Copy link
Collaborator

gjb2048 commented Aug 21, 2024

Even #189... Thus upgrade to 402.2.3 as published on Moodle dot org and see if you can replicate.

@Syxton
Copy link
Author

Syxton commented Aug 21, 2024

@gjb2048 This is going to take some further testing. I was able to recreate it over and over this morning in a single course, but I haven't been able to recreate it in my test courses or test environment. Please disregard for now.

@gjb2048
Copy link
Collaborator

gjb2048 commented Aug 21, 2024

@Syxton Not even using the same MBZ from that single course?

@Syxton
Copy link
Author

Syxton commented Aug 21, 2024

@gjb2048 All the backups of that single course still fail, only the backup once I moved the two hidden sections to the bottom of the course worked. But following the Recreation steps in a new course didn't cause the error...so I'm still digging to find what is happening in this one course.

Ardelean-Emanuel added a commit to Ardelean-Emanuel/moodle-format_grid that referenced this issue Aug 30, 2024
@gjb2048
Copy link
Collaborator

gjb2048 commented Sep 23, 2024

@Syxton Any progress in replicating?

@Syxton
Copy link
Author

Syxton commented Sep 23, 2024

@gjb2048 I haven't had a chance to get back to look at this. It is on my list though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Pending replication Triaged Issue read and is on backlog
Projects
None yet
Development

No branches or pull requests

2 participants