Skip to content

Filter Does-not-Contains for groups and user column does not work  #2597

@Aveyron-RetD

Description

@Aveyron-RetD

Steps to reproduce

  1. Create a column user
  2. Make it possible to add multiple users
Image
  1. Create a view
  2. use a filter column users
  3. select Does not contain userid

Expected behavior

Filter works if there are multiple users

Actual behavior

Filter does not work it only works if the column defaults to one user. I thought it was possible but looks like i cannot see below....

Tables app version

2.1.1

Browser

150

Client operating system

Windows

Operating system

No response

Web server

None

PHP engine version

None

Database

None

Additional info

seen in lib/Db/ColumnTypes/UsergroupColumnQB.php

<?php

/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace OCA\Tables\Db\ColumnTypes;

use OCP\DB\QueryBuilder\IQueryBuilder;

class UsergroupColumnQB extends SuperColumnQB implements IColumnTypeQB {
	public function passSearchValue(IQueryBuilder $qb, string $unformattedSearchValue, string $operator, string $searchValuePlaceHolder): void {
		// TODO how to handle searching for multiple users/groups?
		$qb->setParameter($searchValuePlaceHolder, $unformattedSearchValue, IQueryBuilder::PARAM_STR);
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions