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

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

    XMLWordPrintable

    Details

    • 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 this prior to require_once(_DIR_ . '/lib/setup.php');
        $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 this prior to require_once(_DIR_ . '/lib/setup.php');
        $CFG->enablecourserequests = 1;
      5. Refresh the page
      6. Confirm it is now checked and disabled
      Multiple select
      1. Visit 'Site administration' > 'Courses' > 'Course request'
      2. Confirm 'courserequestnotify' is editable
      3. In config.php set this prior to require_once(_DIR_ . '/lib/setup.php');
        $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 this prior to require_once(_ DIR _ . '/lib/setup.php'); $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 this prior to require_once(_ DIR _ . '/lib/setup.php'); $CFG->enablecourserequests = 1; Refresh the page Confirm it is now checked and disabled Multiple select Visit 'Site administration' > 'Courses' > 'Course request' Confirm 'courserequestnotify' is editable In config.php set this prior to require_once(_ DIR _ . '/lib/setup.php'); $CFG->courserequestnotify = '$@NONE@$,$@ALL@$'; Refresh the page and confirm it is locked and disabled    
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull 3.9 Branch:
      MDL-67650-forced-checkbox-textarea-MOODLE_39_STABLE
    • Pull 3.10 Branch:
      MDL-67650-forced-checkbox-textarea-MOODLE_310_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:
              Matt Porritt Matt Porritt
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 10 minutes
                  5h 10m