How to get rid of notices on the module configuration page of Prestashop 1.7.6.1

If you are using Prestashop 1.7.6.1, you will find that there are notices on the module configuration page if the debug mode enabled, like this "Undefined index: id_xxx". It's a minor problem of PrestaShop 1.7.6.1, to fix it you need to modify the /src/Adapter/Routing/LegacyHelperLinkBuilder.php file, change the line 1[$entityId => $parameters[$entityId], $viewAction => 1] To…