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

multicheckbox setting does not set readonly on config override

XMLWordPrintable

      Hey,

      It seems that, when overriding an admin_setting_configmulticheckbox in the config.php it does not make the setting readonly.

      i noticed this when setting this:

      $CFG->forced_plugin_settings = array(
        'block_myoverview'  => array('layouts' => 'list,summary')
      ); 

      It shows the the "Defined in config.php" box and also does not save any changes, so the forced setting is working as in expected.
      It just does not seem consistent behaviour.

       

      The respective class in the adminlib does not even mention readonly so is the intended?

      Seems like it would be easy to fix
      with a simple edit in the mustache and the context of of the multi checkbox class.

        1. MDL-80180.png
          151 kB
          Ron Carl Alfon Yu

            jjbbss Jeremy Schulz
            jjbbss Jeremy Schulz
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 9 minutes
                1h 9m

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