-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed wrong table in tl_user.subscriptions foreignKey
- Loading branch information
Showing
2 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright (c) 2022 Heimrich & Hannot GmbH | ||
* | ||
* @license LGPL-3.0-or-later | ||
*/ | ||
|
||
$arrDca = &$GLOBALS['TL_DCA']['tl_user']; | ||
|
||
/** | ||
/* | ||
* Extend default palette | ||
*/ | ||
$arrDca['palettes']['extend'] = str_replace('iso_configs', 'subscriptions,subscriptionp,iso_configs', $arrDca['palettes']['extend']); | ||
$arrDca['palettes']['custom'] = str_replace('iso_configs', 'subscriptions,subscriptionp,iso_configs', $arrDca['palettes']['custom']); | ||
|
||
|
||
/** | ||
/* | ||
* Add fields to tl_user_group | ||
*/ | ||
$arrDca['fields']['subscriptions'] = [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_user']['subscriptions'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'foreignKey' => 'tl_subscription_archive.title', | ||
'eval' => ['multiple' => true, 'tl_class' => 'w50 w50h'], | ||
'sql' => "blob NULL", | ||
'label' => &$GLOBALS['TL_LANG']['tl_user']['subscriptions'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'foreignKey' => 'tl_iso_subscription_archive.title', | ||
'eval' => ['multiple' => true, 'tl_class' => 'w50 w50h'], | ||
'sql' => 'blob NULL', | ||
]; | ||
|
||
$arrDca['fields']['subscriptionp'] = [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_user']['subscriptionp'], | ||
'exclude' => true, | ||
'label' => &$GLOBALS['TL_LANG']['tl_user']['subscriptionp'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'options' => ['create', 'delete'], | ||
'options' => ['create', 'delete'], | ||
'reference' => &$GLOBALS['TL_LANG']['MSC'], | ||
'eval' => ['multiple' => true, 'tl_class' => 'w50 w50h'], | ||
'sql' => "blob NULL", | ||
]; | ||
'eval' => ['multiple' => true, 'tl_class' => 'w50 w50h'], | ||
'sql' => 'blob NULL', | ||
]; |