Skip to content

Commit

Permalink
User: Fix Option Filters in Local Administration
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Jul 2, 2024
1 parent 5c341a9 commit c84a321
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions components/ILIAS/User/classes/class.ilUserTableGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ public function readUserDefinedFieldsDefinitions(): void
{
$user_defined_fields = ilUserDefinedFields::_getInstance();
foreach ($user_defined_fields->getDefinitions() as $field => $definition) {
if ($this->mode === self::MODE_LOCAL_USER
&& $definition['visib_lua'] === '0') {
continue;
}

$this->udf_fields["udf_" . $field] = [
"txt" => $definition["field_name"],
"default" => false,
Expand Down Expand Up @@ -240,12 +245,8 @@ public function getSelectableColumns(): array // Missing array type.
"txt" => $lng->txt("auth_mode"),
"default" => false];


// custom user fields
if ($this->getMode() == self::MODE_USER_FOLDER) {
foreach ($this->udf_fields as $k => $field) {
$cols[$k] = $field;
}
foreach ($this->udf_fields as $k => $field) {
$cols[$k] = $field;
}

// fields that are always shown
Expand Down

0 comments on commit c84a321

Please sign in to comment.