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

Plugin actions upgrade fails for multi-company installation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None

      Description

      Currently, when a multi-company installation is upgraded (at least from 4.12.3 to 5.0.2), actions for the current company will be added/updated fine, while those from other companies will be erase. This results in missing nav items and widgets.

      Steps to reproduce:

      • Install with 4.12.3
      • Add additional company
      • Install plugin on additional company
      • Run upgrade via cli
      • Login to admin interface and switch to additional company
      • See that nav items are missing

      It seems this is caused by PluginManager::convertOldActionParams() and PluginManager::get(). convertOldActionParams() calls get to retrieve a company ID from the fetched plugin, but get() will only fetch a plugin for the current company.

      I can think of 2 solutions off the top of my head:

      • Find another way for convertOldActionParams to get the company_id for a plugin
      • Update get() to fetch plugins from any company

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              23/Feb/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 6 hours, 32 minutes
              6h 32m

                Agile