Skip to content

Commit

Permalink
fixed config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Apr 10, 2018
1 parent 5f13ec4 commit 663c0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Module/ModuleList.php
Expand Up @@ -89,7 +89,7 @@ public function __construct(ModuleModel $objModule, $strColumn = 'main')
$this->listConfig = $this->getListConfig((int) $objModule->listConfig);

$this->manager = $this->getListManagerByName($this->listConfig->manager ?: 'default');
$this->manager->setListConfig($this->listConfig);
$this->manager->setListConfig($this->listConfig);
$this->manager->setModuleData($this->arrData);

$this->filterConfig = $this->manager->getFilterConfig();
Expand Down
10 changes: 2 additions & 8 deletions src/Resources/contao/config/config.php
Expand Up @@ -4,7 +4,7 @@
* Backend modules
*/
$GLOBALS['BE_MOD']['system']['list_configs'] = [
'tables' => ['tl_list_config']
'tables' => ['tl_list_config', 'tl_list_config_element']
];

/**
Expand Down Expand Up @@ -39,10 +39,4 @@
* Models
*/
$GLOBALS['TL_MODELS']['tl_list_config'] = 'HeimrichHannot\ListBundle\Model\ListConfigModel';
$GLOBALS['TL_MODELS']['tl_list_config_element'] = 'HeimrichHannot\ListBundle\Model\ListConfigElementModel';


/**
* Assets
*/

$GLOBALS['TL_MODELS']['tl_list_config_element'] = 'HeimrichHannot\ListBundle\Model\ListConfigElementModel';

0 comments on commit 663c0f4

Please sign in to comment.