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: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Administration
    • Testing Instructions:
      Hide

      Textareas:

      1) Visit: /admin/settings.php?section=additionalhtml and confirm the additionalhtmlfooter text box is empty and editable

      2) Enter something and save it, confirm it works and it appears in the foot of the page

      3) In config.php set:

      $CFG->additionalhtmlfooter = "second test";

      4) Confirm it is overridden and disabled

      Checkboxes:

      1) Visit /admin/settings.php?section=courserequest

      2) toggle enablecourserequests and save it and confirm that works

      3) In config.php set:

      $CFG->enablecourserequests = 1;

      Single select

      1) stay on same page confirm is editable

      2) In config.php set and confirm it is visibly locked and disabled

      $CFG->defaultrequestcategory = 1;

      Multiple select

      1) same page test courserequestnotify is editable

      2) In config.php set and confirm it is locked and disabled

      $CFG->courserequestnotify = '$@NONE@$,$@ALL@$';

       

      Strictly there is a large combination of things to test, selects with optgroups, multi selects with optgroups, and also all of the above in both plugin settings vs core settings.

       

      Show
      Textareas: 1) Visit: /admin/settings.php?section=additionalhtml and confirm the additionalhtmlfooter text box is empty and editable 2) Enter something and save it, confirm it works and it appears in the foot of the page 3) In config.php set: $CFG->additionalhtmlfooter = "second test"; 4) Confirm it is overridden and disabled Checkboxes: 1) Visit /admin/settings.php?section=courserequest 2) toggle enablecourserequests and save it and confirm that works 3) In config.php set: $CFG->enablecourserequests = 1; Single select 1) stay on same page confirm is editable 2) In config.php set and confirm it is visibly locked and disabled $CFG->defaultrequestcategory = 1; Multiple select 1) same page test courserequestnotify is editable 2) In config.php set and confirm it is locked and disabled $CFG->courserequestnotify = '$@NONE@$,$@ALL@$';   Strictly there is a large combination of things to test, selects with optgroups, multi selects with optgroups, and also all of the above in both plugin settings vs core settings.  
    • 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

          Activity

            People

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

              Dates

              • Created:
                Updated: