Signed-off-by: Stéphane Jacob <sj@m4x.org>
* XnetGrp:
- #947: Lists group former members to group admins -JAC
- #1481: Adds group nl subscription from group profile edition -JAC
+ - #1504: Displays users without profile in alphabetic lists -JAC
* XnetEvent:
- #1487: Removes link to event attending users to group outsiders -JAC
public function buildCondition(PlFilter $uf)
{
- $sub = $uf->addDisplayFilter();
- return 'SUBSTRING(pd.sort_name, 1, 1) ' . XDB::formatWildcards(XDB::WILDCARD_PREFIX, $this->initial);
+ $table = 'sort_name';
+ if ($uf->accountsRequired()) {
+ $table = Profile::getAccountEquivalentName($table);
+ $sub = 'a';
+ } else {
+ $uf->addDisplayFilter();
+ $sub = 'pd';
+ }
+ return 'SUBSTRING(' . $sub . '.' . $table . ', 1, 1) ' . XDB::formatWildcards(XDB::WILDCARD_PREFIX, $this->initial);
}
public function export()