There is a remaining problem regarding multiple AND/OR filter groups, likely due to insufficient compatibility in LdapQuery.php

 // TODO: Bug hidden here regarding multiple groups, which are not working properly.
      $output = '(' . $operator[$this->group_operator] . $mainGroup . ')';
 

Comments

grahl created an issue. See original summary.

grahl’s picture

Error thrown with one OR combined as AND with another one-item group:

Notice: Undefined property: Drupal\ldap_query\Plugin\views\query\LdapQuery::$group_operator in Drupal\ldap_query\Plugin\views\query\LdapQuery->buildConditions() (line 272 of modules/custom/ldap/ldap_query/src/Plugin/views/query/LdapQuery.php).
Drupal\ldap_query\Plugin\views\query\LdapQuery->buildConditions() (Line: 288)
Drupal\ldap_query\Plugin\views\query\LdapQuery->buildLdapFilter('(objectClass=person)') (Line: 71)
Drupal\ldap_query\Plugin\views\query\LdapQuery->execute(Object) (Line: 1426)
Drupal\views\ViewExecutable->execute(NULL) (Line: 1454)
Drupal\views\ViewExecutable->render() (Line: 183)
Drupal\views\Plugin\views\display\Page->execute() (Line: 1630)
Drupal\views\ViewExecutable->executeDisplay('page_3', Array) (Line: 77)
Drupal\views\Element\View::preRenderViewElement(Array)

  • grahl committed 2ee4b9e on 8.x-3.x
    Issue #2887127 by grahl: Ldap Query Views does not handle filter groups
    
grahl’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.