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

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

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-67650-forced-checkbox-textarea-MOODLE_39_STABLE
    • MDL-67650-forced-checkbox-textarea
    • 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    

    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

              brendanheywood Brendan Heywood
              brendanheywood Brendan Heywood
              Matt Porritt Matt Porritt
              Adrian Greeve Adrian Greeve
              Janelle Barcega Janelle Barcega
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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