Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4600

Call to deprecated function get_all_mods() when adding a user module action or user module outline stats column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3, 3.1.2
    • None
    • None
    • 2011040105
    • MOODLE_24_STABLE, MOODLE_31_STABLE

    Description

      In Columns tab when I select to add a user module outline stats or user module action it shows the following error:

      Function get_all_mods() is deprecated. Use get_fast_modinfo() and get_module_types_names() instead. See phpdocs for details
      line 3004 of /lib/deprecatedlib.php: call to debugging()
      line 45 of /blocks/configurable_reports/components/columns/usermodactions/form.php: call to get_all_mods()
      line 191 of /lib/formslib.php: call to usermodactions_form->definition()
      line 144 of /blocks/configurable_reports/editplugin.php: call to moodleform->moodleform()

      I eliminated the message editing blocks/configurable_reports/components/columns/usermodactions/form.php line 45

      get_all_mods($this->_customdata['report']->courseid, $mods, $modnames, $modnamesplural, $modnamesused);

      with

      $mods = get_fast_modinfo($this->_customdata['report']>courseid)>get_cms();
      $modnames = get_module_types_names();
      $modnamesplural = get_module_types_names(true);
      $modnamesused = get_fast_modinfo($this->_customdata['report']>courseid)>get_used_module_names();

      Attachments

        Activity

          People

            jleyva Juan Leyva
            inborrable Marc Espinosa
            Juan Leyva, Sara Arjona (@sarjona)
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: