contao-community-alliance / merger2

The Merger² for Contao.
GNU Lesser General Public License v3.0
8 stars 5 forks source link

C3: Issue with modules which requires an instance of Model #3

Closed dmolineus closed 11 years ago

dmolineus commented 11 years ago

There is an issue with modules which requires a model be passed, for example for calling getRelated(). ModuleNewsArchiveMenu for example require this.

This would fix it (line 368 in ModuleMerger2.php):

        $objModule = \ModuleModel::findByPK($intId);

        if ($objModule === null)
        {
            return '';
        }
tristanlins commented 11 years ago

Fixed in version 2.2