Skip to content

Commit

Permalink
Remove feViewable and use feEditable instead (fixes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed May 9, 2024
1 parent 32df3a1 commit 21da5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion contao/dca/tl_member.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
'inputType' => 'fileTree',
'eval' => [
'feEditable' => true,
'feViewable' => true,
'feGroup' => 'personal',
'fieldType' => 'radio',
'filesOnly' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct() {
}

#[AsCallback(table: 'tl_module', target: 'fields.ext_orderField.options')]
public function getViewableMemberFields(): array
public function getEditableMemberFields(): array
{
$fields = [];

Expand All @@ -23,8 +23,8 @@ public function getViewableMemberFields(): array
if (
!empty($v['inputType']) &&
$k !== 'avatar' &&
isset($v['eval']['feViewable']) &&
$v['eval']['feViewable'] === true
isset($v['eval']['feEditable']) &&
$v['eval']['feEditable'] === true
) {
$fields[$k] = ($GLOBALS['TL_DCA']['tl_member']['fields'][$k]['label'][0] ?? $k) . ' ['.$k.']';
}
Expand Down

0 comments on commit 21da5ab

Please sign in to comment.