Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-62344

Show up ID number field in label resource settings form

    XMLWordPrintable

    Details

    • Testing Instructions:
      1. Create new label
      2. Open the common module settings 
        1. Confirm that the ID Number field is present
    • Workaround:
      Hide

      In the file mod/label/lib.php

      • lookup for the function label_supports
      • update the line

        case FEATURE_IDNUMBER:                return false;

         to

        case FEATURE_IDNUMBER:                return true;

      Show
      In the file mod/label/lib.php lookup for the function label_supports update the line case FEATURE_IDNUMBER:                return false;  to case FEATURE_IDNUMBER:                return true;
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62344-master-final

      Description

      Label resource (mod_label) settings form do not show up ID number field. So, there is no way to set a value. Maybe, because the ID number is mainly used for grade purposes and the label resource is not used for that. In continuing education, we use label resource, achievement, and conditional activities to let user make some choice.  Learners activities are then decided from that choice. some time, learner can also change his choice and we want to keep track of completed activities and update the content to show up according to the new choice.  We use the label idnumber for custom report to make sure that all required activities for the choice are completed. 

      Let say also that using information from user's profile is not enough and not practical at all. For instance, To work in given service, a nurse need to complete some learning activities required to get access to EMR (Electronic medical records) software. If she changes the service, she need also to completes activities required for that new service. This is the case for thousands of employees (nurses, medical doctor, resident, etc). We want to avoid them to waste time on activities that are not accurate for the job

      Activities achievement report is not practical because there is huge number of employees.   

      The ID Number field is already implemented on label resource, but disable. We suggest to set 

       

      case FEATURE_IDNUMBER:                return true;

       

      in the function label_supports of mod/label/lib.php

      We provide a patch (format-patch, git diff)  with behat test in attachment 

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18