- π¦πΊAustralia kobusvw Adelaide
Hi Opigno team,
Will this feature (Unroll) be in the next release?
If not, is there a different unroll setup we can use?
This is a major request from all the clients we have. - π¨π¦Canada No Sssweat
I have created 3 patches that adds this functionality.
However, the patch that starts with part-2-of-... must not be used on a live site.
This is because it contains a DB update code, and the update number needs to be agreed upon with the module's maintainer. Therefore, this can likely cause future DB updates not to run.(If you would like to use this feature on a live site, see my next comment, #4)
These patches will create a new checkbox field in the training edit form/page.
and when that is checked, it will allow user to un-enroll for that particular training.
- π¨π¦Canada No Sssweat
1) First, this depends this other issue getting fixed, https://www.drupal.org/project/opigno_learning_path/issues/3336036 π Re-arraging the learning path Form Display fields causes, TypeError: key(): Argument #1 ($array) must be of type array, null given in key() (line 462 of modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php). Needs review
However, you can manually fix that issue by going to
/admin/group/types/manage/learning_path/form-display
and correcting the "Duration" field widget to "autocomplete"2) You will have to manually add/create the checkbox (boolean) field, since you can't use the "part-2-of" patch, with the following values
3) Apply the "part-1-of" & "part-3-of" patches.
- Status changed to Needs review
almost 2 years ago 1:36pm 2 February 2023 - πΈπͺSweden DonoD
I applied patch 1 and 3. Works great! Thanks for the patch. If the user re-enroll the course the statistics remain which is beatifull