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

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

av Arturas Jevdokimovas -
Antall svar: 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

Vedlegg course completion.png
Gjennomsnittlig vurdering: -
Som svar til Arturas Jevdokimovas

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

av Mary Cooch (personal account) -
Bilde av Documentation writers Bilde av Testers

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

Gjennomsnittlig vurdering:Useful (1)
Som svar til Mary Cooch (personal account)

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

av Denis Glagolev -

I have this is bug in Moodle 3.5.

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

Som svar til Denis Glagolev

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

av 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

Som svar til Steve Morrison

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

av 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

Som svar til Steve Morrison

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

av Megan Alfaro -
Hi everyone,
Can someone please share the workaround in boost theme in order to remove a course from the list? Thanks,
Megan
Som svar til Megan Alfaro

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

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

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

av 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.
Som svar til Arturas Jevdokimovas

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

av umer Ahmed -
Any solution to this bug , this seems to still exist in 3.5.7?
Som svar til Arturas Jevdokimovas

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

av 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.
Som svar til umer Ahmed

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

av 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.