Many to one field cannot show the default value in the pop up

The many to one field cannot show the default value in the pop-up, but it internally contains the value.
image

* Describe the bug

The many to one field cannot show the default value in the pop-up.

* Environment

  • NocoBase version: v2.0.0-alpha.56
  • Database type and version: PostgreSQL 16
  • OS: Ubuntu 24.04.3 LTS, Client - Windows 11
  • Deployment Methods: Docker
  • Docker image version: nocobase/nocobase:2.0.0-alpha.56-full
  • NodeJS version: NA

* How To Reproduce

  1. Create two collections request and request_approval
  2. In request_approval collection, create a many-to-one field (Request ID) pointing to the ID of request collection
  3. Create a table of request in a page, and add Edit in the Actions.
  4. Add a Form (Add new) for request_approval in the Edit pop-up.
  5. Add the Request ID, and configure the default value to Current popup/Current popup record/ID
  6. When opening pop-up, no default value is shown, but it saves the Current popup record ID when being submitted. If I manually choose any value and remove it, blank value will be saved.
  7. Demo: https://a_8hwne7u84ho.v13.demo.nocobase.com/admin/nlj52lynqcf

Expected behavior

It should show the default value when the pop-up is opened.

Screenshots

NA

Logs

No error log generated.

Please refer to:

For date fields, the default value can be shown without any problems.
When the field is a dropdown list configured to have default value referring to current popup record, the default value does not show. However, it can be submitted, and default value is saved properly. Therefore, the many-to-one fields have an issue to show the default value.