Projekt

Allgemein

Aktionen

GX-Bug #68203

geschlossen

Gambio HUB menu entries are displayed twice | Gambio Hub Menüeinträge werden doppelt angezeigt

Von Tobias Schindler vor mehr als 4 Jahren hinzugefügt. Vor fast 4 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Hoch
Zugewiesen an:
Julian Heckmann
Kategorie:
HubConnector
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.3.0 beta1
Release Notes Langtext:

Gambio Hub Menüeinträge werden nicht mehr doppelt angezeigt


Beschreibung

In some case, it is possible that some menu items of the gambio hub are displayed twice.

The twice displayed item is Orders -> Payment Matching (German: Bestellungen -> Zahlungsabgleich)

Reproduce:

Database gx_configurations entries

gm_configuration/GAMBIO_HUB_CLIENT_KEY: 123-123
gm_configuration/GAMBIO_HUB_MECO_MEDIA_SHOP_ID: 123-123
gm_configuration/GAMBIO_HUB_MECO_MEDIA_MONEY_ORDER: 1
gm_configuration/GAMBIO_HUB_MECO_MEDIA_INVOICE: 1

Content of src/GXModules/Gambio/Hub/Admin/Menu/hub.menu.json

[
    {
        "id": "BOX_HEADING_ORDERS",
        "items": [
            {
                "sort": 15,
                "link": "admin.php",
                "link_param": "do=PaymentMatchingHub",
                "title": "admin_menu.BOX_HUB_PAYMENT_MATCHING",
                "if": [
                    {
                        "filter": "configExists",
                        "args": [
                            "GAMBIO_HUB_CLIENT_KEY",
                            "GAMBIO_HUB_MECO_MEDIA_SHOP_ID"
                        ]
                    },
                    {
                        "filter": "configActive",
                        "args": [
                            "GAMBIO_HUB_MECO_MEDIA_MONEY_ORDER"
                        ]
                    }
                ]
            },
            {
                "sort": 15,
                "link": "admin.php",
                "link_param": "do=PaymentMatchingHub",
                "title": "admin_menu.BOX_HUB_PAYMENT_MATCHING",
                "if": [
                    {
                        "filter": "configExists",
                        "args": [
                            "GAMBIO_HUB_CLIENT_KEY",
                            "GAMBIO_HUB_MECO_MEDIA_SHOP_ID"
                        ]
                    },
                    {
                        "filter": "configActive",
                        "args": [
                            "GAMBIO_HUB_MECO_MEDIA_INVOICE"
                        ]
                    }
                ]
            }
        ]
    },
    {
        "id": "BOX_HEADING_HUB",
        "sort": 250,
        "class": "fa fa-share-alt-square",
        "title": "admin_menu.BOX_HEADING_HUB",
        "items": [
            {
                "sort": 10,
                "link": "admin.php",
                "link_param": "do=HubConfiguration/Account",
                "title": "admin_menu.BOX_HUB_ACCOUNT"
            },
            {
                "sort": 20,
                "link": "admin.php",
                "link_param": "do=KlarnaHubSettlements",
                "title": "Klarna Settlements",
                "if": {
                    "filter": "configExists",
                    "args": [
                        "GAMBIO_HUB_CLIENT_KEY",
                        "GAMBIO_HUB_REMOTE_CONFIG_KLARNAHUB_DEBUGLOGGING"
                    ]
                }
            },
            {
                "sort": 30,
                "link": "admin.php",
                "link_param": "do=KlarnaHubBoost",
                "title": "Klarna Boost",
                "if": {
                    "filter": "configExists",
                    "args": [
                        "GAMBIO_HUB_CLIENT_KEY",
                        "GAMBIO_HUB_REMOTE_CONFIG_KLARNAHUB_DEBUGLOGGING"
                    ]
                }
            }
        ]
    }
]

Checkliste 0/0

Aktionen #4

Von Mirko Janssen vor mehr als 4 Jahren aktualisiert

  • Zugewiesen an wurde von Mirko Janssen zu Core-Entwickler geändert

Did the code review. MR was fine.

Aktionen