"Current Record" in the Linkage Rules of buttons in "Details" blocks does not updated when selecting another record

* Describe the bug

“Current Record” in the Linkage Rules of buttons in “Details” blocks always refers to the first record. When a user selects another record in the “Details” block, the Linkage Rules is still evaluated based on the first record rather than the record shown in the “Detail” block.

* Environment

  • NocoBase version: v2.0.0-alpha.56
  • Database type and version: PostgreSQL 16
  • OS: Server - 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. Prepare a collection with a “single line text” field - SID with record A, B, C and D
  2. Create a page and add a “Detail” block for the collection
  3. Add an Edit button in the Actions.
  4. Configure the Linkage rules of the Edit button. Condition: Current record/SID is A, Actions: Set button state - Disabled. The Edit button is always disabled.
  5. Configure the Linkage rules of the Edit button. Condition: Current record/SID is B, Actions: Set button state - Disabled. The Edit button is always enabled.

Expected behavior

Current record in the linkage rules should update when the user selects another record in the “Detail” block.

Screenshots

Logs

NA

Thank you for reporting the issue. Please wait while we fix it.