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

Incorrect parameter documentation in update_capabilities function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.6, 3.8.3, 3.9, 3.10
    • Fix Version/s: 3.8.4
    • Component/s: Roles / Access
    • Labels:

      Description

      The accesslib.php::update_capabilities() function defines the $component parameter as:

      @param string $component examples: 'moodle', 'mod/forum', 'block/quiz_results'

      But the parameter should really use the Moodle frankenstyle of component. Change the documentation to read:

      @param string $component examples: 'moodle', 'mod_forum', 'block_quiz_results'

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            mchurch Mike Churchward
            Peer reviewer:
            Jan Dageförde
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Jul/20

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 minutes
                6m