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

Forced $CFG config checkbox, select, textarea are not disabled in gui

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Peer review in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Administration
    • Testing Instructions:
      Hide
      Prerequisite
      1. A site with multiple course categories.
      Textareas
      1. Visit 'Site administration' > 'Appearance' > 'Additional HTML'
      2. Confirm the 'additionalhtmlfooter' text box is empty and editable
      3. Enter something and save it, confirm it works and it appears in the foot of the page
      4. In config.php set:
        $CFG->additionalhtmlfooter = "second test";
      5. Confirm it is overridden and disabled
      Checkboxes
      1. Visit 'Site administration' > 'Courses' > 'Course request'
      2. Uncheck 'enablecourserequests' and click 'Save changes'
      3. Confirm that it was saved successfully.
      4. In config.php set:
        $CFG->enablecourserequests = 1;
      5. Refresh the page
      6. Confirm it is now checked and disabled
      Single select
      1. Visit 'Site administration' > 'Courses' > 'Course request'
      2. Confirm 'defaultrequestcategory' is set to the default and can be changed.
      3. In config.php set
        $CFG->defaultrequestcategory = 2;
      4. Refresh the page
      5. Confirm it is visibly locked and disabled
      Multiple select
      1. Visit 'Site administration' > 'Courses' > 'Course request'
      2. Confirm 'courserequestnotify' is editable
      3. In config.php set
        $CFG->courserequestnotify = '$@NONE@$,$@ALL@$';
      4. Refresh the page and confirm it is locked and disabled
      Show
      Prerequisite A site with multiple course categories. Textareas Visit 'Site administration' > 'Appearance' > 'Additional HTML' Confirm the 'additionalhtmlfooter' text box is empty and editable Enter something and save it, confirm it works and it appears in the foot of the page In config.php set: $CFG->additionalhtmlfooter = "second test"; Confirm it is overridden and disabled Checkboxes Visit 'Site administration' > 'Courses' > 'Course request' Uncheck 'enablecourserequests' and click 'Save changes' Confirm that it was saved successfully. In config.php set: $CFG->enablecourserequests = 1; Refresh the page Confirm it is now checked and disabled Single select Visit 'Site administration' > 'Courses' > 'Course request' Confirm 'defaultrequestcategory' is set to the default and can be changed. In config.php set $CFG->defaultrequestcategory = 2; Refresh the page Confirm it is visibly locked and disabled Multiple select Visit 'Site administration' > 'Courses' > 'Course request' Confirm 'courserequestnotify' is editable In config.php set $CFG->courserequestnotify = '$@NONE@$,$@ALL@$'; Refresh the page and confirm it is locked and disabled
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-67650-forced-checkbox-textarea

      Description

      If you force a config item for a checkbox:

      $CFG->allowframembedding = 1;

      The gui says it is forced, and does honor that server side, but in the gui the checkbox is not disabled

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brendanheywood Brendan Heywood
              Reporter:
              brendanheywood Brendan Heywood
              Peer reviewer:
              Mark Nelson
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: