Issue Details (XML | Word | Printable)

Key: MDL-10405
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Chris Fryer
Votes: 30
Watchers: 18
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Delete sections

Created: 10/Jul/07 11:05 PM   Updated: 10/Oct/09 01:57 AM
Component/s: Course
Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.9
Fix Version/s: None

File Attachments: 1. File delete.section.part1.diff (9 kB)
2. File delete.section.part2.diff (3 kB)

Issue Links:
Duplicate
 
Relates

Participants: Anthony Borrow, Chris Fryer, Daniel Neis, eric stephan, Martin Dougiamas and Steve Bond
Security Level: None
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
This has been discussed before, notably in bug 2245. There is no way to delete a section (e.g. week or topic) from a Moodle course. There seems to be general agreement that this is A Good Thing, but I can't really see why. I understand the argument that you don't want the teacher deleting a populated section by accident, but you can't even delete an empty section.

The usual workaround is to move the offending section to the bottom of the course page, and reduce the number of sections the course displays. However, bug 4719 indicates the drawbacks in this approach. If a teacher wants to add a new section by increasing this number, the "deleted" block reappears. This is irksome.

If a teacher/editor has powers to delete a resource or activity, shouldn't they have the power to delete an entire section? You are asked for confirmation in cautionary terms every time you attempt to delete a resource, so why not have the same for a section, e.g. "Are you absolutely sure you want to completely delete the section 'foo'?"



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
eric stephan added a comment - 22/Feb/08 03:48 AM

OOooof, if there ever was a time that I wanted to stuff a ballot box, this is it.

This has just generated a real, and ridiculous, problem for me.

In a course, a fellow administrator wrongheadedly added a bunch of new topics to the course, like 10 of them, thinking that new material would be added.

He was wrong. But these topics are interspersed throughout the course. To delete these 10 topics, I am going to (1) move each of them to the bottom one topic at a time, one step at a time – because there is no "move to this location box" feature for moving topics? ... and then do the silly limit-the-number-of-topics feature?

I'm hoping there is some other way – but this could be hours of ridiculous clicking, to delete 10 topics?

thx
eric


Steve Bond added a comment - 19/Mar/08 12:56 AM
The way it works at present is effectively duplicating functionality. There is already a way to hide sections. Reducing the number of sections is like a stronger version of the same thing (i.e. you're hiding them from all users, not just students), but it adds nothing in terms of usefulness.

Another reason why it is annoying is that because (rightly) you cannot delete a file from the file store when it is being referenced by a resource. But that goes for the resources in non-visible (as opposed to hidden - you see how crazy this is!) sections as well. So if, for example, an editor inherits a course from a predecessor and tries to revamp it, they are find that they are unable to delete files that do not appear to be in use. Then they extend the number of topics to 25 and realise that they are going to spend the rest of the day clicking red crosses...


Daniel Neis added a comment - 18/May/09 10:47 PM
the related issue has a patch that works on 1.9.5

Daniel Neis added a comment - 06/Oct/09 01:29 AM
The patches (delete.section.part1.diff and delete.section.part2.diff, which should be applied in this order) implement the code to remove a section of a course (both in weekly and topics format, ajax and not) with all it's modules. Hope you like the solution.

Anthony Borrow added a comment - 10/Oct/09 01:57 AM
As requested by Daniel - I am adding 1.9 as an affected version. Peace - Anthony