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

Global settings link for blocks does not appear on Manage Block screen when it does appear in the menu tree

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      Install a block with a "settings.php" file but no "has_config" method.
      Verify that the settings link is in one or both places.

      Show
      Install a block with a "settings.php" file but no "has_config" method. Verify that the settings link is in one or both places.
    • Workaround:
      Hide

      Either just access the settings function from the menu, or add a 'has_config' function to the block code.

      Show
      Either just access the settings function from the menu, or add a 'has_config' function to the block code.
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      If you have a "settings.php" file in your block's directory, the settings link will be available from the main "Plugins / Blocks" menu tree but will not show up on the main "Manage blocks" page. This is true unless there is a "has_config" function defined within the block that returns true. I believe this inconsistency is unintended.
      One of two things should be true:

      1. Presence of the "settings.php" generated the setting link in both places, or
      2. Presence of the "has_config" function is required to generate the setting link in both places.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: