* 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
- Prepare a collection with a “single line text” field - SID with record A, B, C and D
- Create a page and add a “Detail” block for the collection
- Add an Edit button in the Actions.
- 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.
- 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