Commit 99605d37 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(dialogAttributes) Fix error in GenericDialogAttribute

issue #5965
parent 72e5221d
......@@ -416,7 +416,7 @@ class GenericDialogAttribute extends DialogAttribute
if ($this->display_attr == 'dn') {
$this->displays[$i] = $attrs['dn'];
} else {
if (is_array($attrs)) {
if (is_array($attrs[$this->display_attr])) {
// simpleSelectManagement or LDAP data
$this->displays[$i] = $attrs[$this->display_attr][0];
} else {
......
  • SonarQube analysis reported 1 issue

    • 1 major

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. Remove the code after this "throw". 📘
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment