* Describe the bug
When setting a field linkage rule on a relationsip field, the contains condition does not work correctly when there is only one item in the selected options.
* Environment
- NocoBase version: v2.0.0-alpha.47
- Database type and version: Postgres
- OS: Mac
- Deployment Methods: Docker
- Docker image version: nocobase/nocobase:alpha-full
- NodeJS version: NA
* How To Reproduce
- Create a role in Nocobase called Region Manager
- Create a field in the users collection called Region that is a relationship many to one
- Make sure that there are a few different roles in the system
- Create a linkage rule on form edit whereby if role name contains Region Manager, it makes the regions field required
Expected behavior
The linkage rule should force the user to specify region when the roles contain region manager
Screenshots
Despite no selection in roles, region is required:
With a non region manager role, the field is not required:
With two roles, of which one is region manager, it is not required:
With region manager on its own, it is required:



