Needs review
Project:
Opigno module
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2019 at 14:36 UTC
Updated:
2 Oct 2019 at 15:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
catchComment #3
catchHere's a patch, although as mentioned the check could be saved altogether by moving the logic into a form alter in opigno_skills module. Could also go further and make the skills widget an 'extra field'.
Comment #4
axelmHi @catch
Opigno was designed like that.
The option "Activate skills system for this module" makes possible to have modules automatically ending when reaching a target skill.
But if this option is not enabled, you can anyway assign skills to activities so that you have a reporting on the users' skills.
You can have a look at our user manual to learn more about Opigno skills system:
https://opigno.atlassian.net/wiki/spaces/OUM20/pages/790167560/Automatic...
Comment #5
catchFixing the variable name, although that should also use an underscore instead of camel case to match Drupal coding standards.
Comment #6
catchComment #7
catchCross-posted the last two comments.
@axelm further up in the same form there's a check for the opigno_skills_system module though, are you saying the skills system isn't optional at all?
Comment #8
axelm@catch No this is no optional
Comment #9
catch@axelm if the skills system isn't optional, then why is the module itself optional?
Comment #10
axelm@catch
Skills system (= the possibility to assign skills to activities and then have a reporting) is part of Opigno.
The option in modules is to have Opigno automatically managing when the module will end (=you define a target skill and Opigno will continue presenting specifically targeted activities to the user until the target skill is mastered). If this option is not enabled you defined which activities will be presented to the users taking this module and the module will end with the last activity.
This is explained in our user manual
https://opigno.atlassian.net/wiki/spaces/OUM20/pages/790167560/Automatic...
Comment #11
imclean commented#8:
#10
It seems it's more a requirement than a possibility. Is there any chance the skills feature can be made optional? We have no need for the complexity of skills in one of our projects.
In this case, the following in
Drupal\opigno_module\Form\OpignoActivityForm->buildForm()is causing an error when no skills are assigned:The error is:
Comment #12
imclean commentedI'm seeing 2 other errors.
.
This occurs because there is no value for auto_skills.
Which relates to the same line as the error in #11.
Comment #13
imclean commentedUninstalling Opigno Skills System resolved the errors. Apologies for the noise.The errors remain.Comment #14
catchOpened an issue to fix the notice mentioned in #11, but agreed it would be better if the entire opigno skills system could be made optional rather than just the auto-skills feature.
#3085194: Activity form PHP notices.