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

child theme theme_config parent theme_config contains child settings.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.9.3, 3.0, 3.1
    • Themes
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Hide

      1. Select the Clean theme.
      2. Edit the file /theme/clean/version.php and increment $plugin->version by one.
      3. Check that it is different to the same variable for its parent 'bootstrapbase', i.e. Clean is:

      $plugin->version = 2015051101;
      and Bootstrapbase is:
      $plugin->version = 2015051100;

      4. In '/theme/clean/layout/columns2.php add the following after the copyright but before '$html = ....':

      error_log('theme_config clean test: '.print_r(theme_config::load('clean'), true));

      5. In the Moodle UI, navigate to Site administration -> Notifications.
      6. Navigate to your php.log file and find where 'theme_config clean test' is.
      7. Confirm that '[version]' for '[settings]' is different for '[name]' of 'clean' than it is in '[parent_configs:protected]' for '[name]' of 'bootstrapbase'.

      Show
      1. Select the Clean theme. 2. Edit the file /theme/clean/version.php and increment $plugin->version by one. 3. Check that it is different to the same variable for its parent 'bootstrapbase', i.e. Clean is: $plugin->version = 2015051101; and Bootstrapbase is: $plugin->version = 2015051100; 4. In '/theme/clean/layout/columns2.php add the following after the copyright but before '$html = ....': error_log('theme_config clean test: '.print_r(theme_config::load('clean'), true)); 5. In the Moodle UI, navigate to Site administration -> Notifications. 6. Navigate to your php.log file and find where 'theme_config clean test' is. 7. Confirm that ' [version] ' for ' [settings] ' is different for ' [name] ' of 'clean' than it is in ' [parent_configs:protected] ' for ' [name] ' of 'bootstrapbase'.

      The protected parent_configs attribute of the child's theme_config object which has the parents theme_config objects contain the settings of the child instead of the parent.

      This means that there is inaccurate data in the system. I don't know the implications of this, but clearly it could cause confusion and oddities where the data is used.

      Detected in M2.9 but could be earlier.

            Unassigned Unassigned
            gb2048 Gareth J Barnard
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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