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

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

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_38_STABLE, 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    

      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

        1. image-2020-01-09-23-54-40-241.png
          12 kB
          Brendan Heywood
        2. image-2020-10-23-10-28-21-118.png
          61 kB
          Janelle Barcega
        3. Screenshot_1.jpg
          62 kB
          Janelle Barcega
        4. Screenshot_2.jpg
          20 kB
          Janelle Barcega

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Matt Porritt Matt Porritt
            Adrian Greeve Adrian Greeve
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.