Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/CoreBundle/Contao/Hooks/LoadDataContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Contao\System;
use ContaoCommunityAlliance\DcGeneral\Contao\RequestScopeDeterminator;
use ContaoCommunityAlliance\DcGeneral\Data\ModelId;
use ContaoCommunityAlliance\DcGeneral\DC\General;
use Doctrine\DBAL\Connection;
use MetaModels\CoreBundle\Assets\IconBuilder;
use MetaModels\Helper\LocaleUtil;
Expand Down Expand Up @@ -204,7 +205,7 @@ private function handleNonMetaModelTable(string $tableName): void
}

// Compatibility with DC_Table.
if ($parentDCA['config']['dataContainer'] !== 'General') {
if ($parentDCA['config']['dataContainer'] !== General::class) {
$idParameter =
$parentDCA['list']['operations'][$operationName]['idparam'];
$parentDCA['list']['operations'][$operationName]['button_callback'] =
Expand Down
4 changes: 3 additions & 1 deletion src/CoreBundle/Resources/contao/dca/tl_metamodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'switchToEdit' => true,
'enableVersioning' => false,
'sql' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_attribute'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'ptable' => 'tl_metamodel',
'switchToEdit' => false,
'enableVersioning' => false,
Expand Down
3 changes: 2 additions & 1 deletion src/CoreBundle/Resources/contao/dca/tl_metamodel_dca.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
*/

use Contao\System;
use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_dca'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'ptable' => 'tl_metamodel',
'switchToEdit' => false,
'enableVersioning' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_dca_combine'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'ptable' => 'tl_metamodel',
'switchToEdit' => false,
'enableVersioning' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_dca_sortgroup'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'ptable' => 'tl_metamodel_dca',
'switchToEdit' => false,
'enableVersioning' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_dcasetting'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'switchToEdit' => true,
'enableVersioning' => false,
'sql' => [
Expand Down
5 changes: 4 additions & 1 deletion src/CoreBundle/Resources/contao/dca/tl_metamodel_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
This file defines the basic structure of ALL MetaModel items.
Note however, that various MetaModel extensions might remove or add stuff here.
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_item'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'switchToEdit' => false,
'enableVersioning' => false,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
* @filesource
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;

$GLOBALS['TL_DCA']['tl_metamodel_rendersetting'] = [
'config' => [
'dataContainer' => 'General',
'dataContainer' => General::class,
'ptable' => 'tl_metamodel_rendersettings',
'switchToEdit' => true,
'enableVersioning' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

use ContaoCommunityAlliance\DcGeneral\DC\General;
use MetaModels\CoreBundle\Contao\Hooks\ContentElementCallback;

$GLOBALS['TL_DCA']['tl_metamodel_rendersettings'] = [
'config' => [
Expand Down Expand Up @@ -320,8 +321,9 @@
'eval' => [
'tl_class' => 'jumpTo_filter',
'includeBlankOption' => true,
'chosen' => true
]
'chosen' => true,
'submitOnChange' => true,
],
],
],
],
Expand Down