magento2-menu
magento2-menu copied to clipboard
Add Resource Connection to __construct so that the connection table name comes through with any prefixes
Resolves: https://github.com/SnowdogApps/magento2-menu/issues/346
Add Resource Connection to __construct so that the connection table name comes through with any prefixes
Currently, when installed on an instance with a database prefix, the node saving fails with table 'databasename.snowmenu_customer' not found.
This is because $this->getConnection();
uses a resource that has been instantiated without the concept of Magento database prefixes.
Replication Steps
- Install Magento with database prefix.
- Create Menu in admin panel.
- Add Node type of custom url and fill out information
- Hit Save.
- Error
table 'databasename.snowmenu_customer' not found.
is show.