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

Remove usage of deprecated function update_module_button()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 3.0.3
    • Resource, Wiki (2.x)
    • MOODLE_30_STABLE
    • MOODLE_32_STABLE
    • MDL-53765-master
    • Hide
      Resource
      1. Upload a File resource and set display to Embed
      2. View File and verify that there isn't a button that says "Update this File"
      Wiki
      1. Create Wiki activity
      2. Create a wiki page and click Preview and verify that there isn't a button that says "Update this Wiki"
      Other tests
      1. Confirm that there is update_module_button() or core_renderer::update_module_button() are not being used anywhere in Moodle.
      2. Run Behat tests for mod_wiki and mod_resource.
        • Confirm that there are no errors nor failures.
      Show
      Resource Upload a File resource and set display to Embed View File and verify that there isn't a button that says "Update this File" Wiki Create Wiki activity Create a wiki page and click Preview and verify that there isn't a button that says "Update this Wiki" Other tests Confirm that there is update_module_button() or core_renderer::update_module_button() are not being used anywhere in Moodle. Run Behat tests for mod_wiki and mod_resource. Confirm that there are no errors nor failures.

      In MDL-21169, it was agreed to remove the "Update this <module>" from navigation. But because of legacy reasons some core plugins haven't been updated yet, such as Resource and Wiki.

      This patch will remove the call to update_module_button() and deletes the long standing deprecated function.

            jpataleta Jun Pataleta
            rex Rex Lorenzo
            Marina Glancy Marina Glancy
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            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.