Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1697

Allow plugins to register the same plugin action more than once

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.1.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      A plugin can define actions via ::getActions, however, it is limited to only allowing a specific action to be defined once per plugin due to the structure of the primary key set on the `plugin_actions` table.

      For example, a plugin cannot currently define multiple primary navigation elements (e.g. to the "nav_primary_staff" action) because of this limitation.

      We should consider changing the primary key for `plugin_actions` to an ID or including the URI in it. Functionality has to be updated to support this change, so some methods will probably be deprecated because of the update.

      See http://www.blesta.com/forums/index.php?/topic/3619-primary-key-in-plugin-actions/

        Activity

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jul/17

              Agile