Can't remove another course from Condition: Completion of other courses

Can't remove another course from Condition: Completion of other courses

by Arturas Jevdokimovas -
Number of replies: 10

Hi,

I can not remove another course from Condition: Completion of other courses. Trick with Ctrl+click doesn't help, another course is still in the field after saving.

Moodle version 3.4+ (Build: 20171201)
MariaDB 10.0.33
PHP 7.0.25

There are only 2 courses set, actually it is the same course in English and in Russian. And I need students to complete only one course depending on their language, but now they must go through both courses to complete.

Is there any workaround?

Thanks

Attachment course completion.png
Average of ratings: -
In reply to Arturas Jevdokimovas

Re: Can't remove another course from Condition: Completion of other courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hello there. I remember this as a problem a few versions back. I have made a comment in the tracker issue here MDL-60480

Average of ratings: Useful (1)
In reply to Mary Cooch

Re: Can't remove another course from Condition: Completion of other courses

by Denis Glagolev -

I have this is bug in Moodle 3.5.

What I have to do, because it is important thing.

In reply to Denis Glagolev

Re: Can't remove another course from Condition: Completion of other courses

by Steve Morrison -

I have spent a fair bit of time thinking that I was doing something wrong. Same exact issue here. Moodle 3.5 fordson theme

In reply to Steve Morrison

Re: Can't remove another course from Condition: Completion of other courses

by Steve Morrison -

Hello there. I remember this as a problem a few versions back. I have made a comment in the tracker issue here MDL-60480

Thank you Mary, That workaround fixed my mistake. What a wonderful platform Moodle is. read enough and the answers you will find.

   Greatly appreciated!! Steve

In reply to Steve Morrison

Re: Can't remove another course from Condition: Completion of other courses

by Megan Alfaro -
Hi everyone,
Can someone please share the workaround in boost theme in order to remove a course from the list? Thanks,
Megan
In reply to Megan Alfaro

Re: Can't remove another course from Condition: Completion of other courses

by umer Ahmed -
Hi , I need the work around as well . Need to remove course that was selected by mistake.
In reply to Megan Alfaro

Re: Can't remove another course from Condition: Completion of other courses

by umer Ahmed -
This worked for me , the  work around that will fix the issue

in the file /moodle/course/completion_form.php

add the below right above the comment "// Show mutliselect box "

add " $selectbox[0]='None';  "

This will add "None" in the select box. When you don't want any course select "None" in the select list. The course the was not going away will be removed and not saved.
In reply to Arturas Jevdokimovas

Re: Can't remove another course from Condition: Completion of other courses

by umer Ahmed -
Any solution to this bug , this seems to still exist in 3.5.7?
In reply to Arturas Jevdokimovas

Re: Can't remove another course from Condition: Completion of other courses

by umer Ahmed -
This worked for me ..the work around that will fix the issue

in the file /moodle/course/completion_form.php

add the below right above the comment "// Show mutliselect box "

add " $selectbox[0]='None'; "

This will add None in the select box. When you don't want any course select "None" in the list. The course will be removed and not saved.
In reply to umer Ahmed

Re: Can't remove another course from Condition: Completion of other courses

by ahssan moshref -

I found a simpler solution.

Click on unlock condition, then scroll to "Condition: Completion for other courses"

Find the item that you have selected and hold "Ctrl + Click on selected Item"

The selected item will be inactive. Then Save to see the change. 

Note: it did not work on the first time ( maybe I am sitting on a slow computer) worked on the second time. 

( how did i figure this out?... pure accident/instinct.... it just happened.) 

I think from a UX point of view, a simple click to select and a second click to deselect it should suffice.