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

RSS: It does not turn off auto-discovery of feeds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.3.2
    • RSS
    • MOODLE_33_STABLE

      How to see the bug:

      1. Create a new RSS feed;
      2. Open the created RSS feed for editing;
      3. Turn off the Enable auto-discovery of feeds and save the result.
      4. Re-open the RSS feed for editing, the result was not saved.

      Why is this happening?

      The $mform->get_data() function does not return null or empty values.

      How it is possible to correct a bug?

      Add additional checks in the file editfeed.php:

      --- a/blocks/rss_client/editfeed.php
      +++ b/blocks/rss_client/editfeed.php
      @@ -49,7 +49,7 @@ class feed_edit_form extends moodleform {
               $mform->setType('url', PARAM_URL);
               $mform->addRule('url', null, 'required');
       
      -        $mform->addElement('checkbox', 'autodiscovery', get_string('enableautodiscovery', 'block_rss_client'));
      +        $mform->addElement('advcheckbox', 'autodiscovery', get_string('enableautodiscovery', 'block_rss_client'));
               $mform->setDefault('autodiscovery', 1);
               $mform->setAdvanced('autodiscovery');
               $mform->addHelpButton('autodiscovery', 'enableautodiscovery', 'block_rss_client');
      

            Unassigned Unassigned
            valentineus valentineus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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