teable icon indicating copy to clipboard operation
teable copied to clipboard

fix: missing cross-base link fields when update dbTableName

Open tea-artist opened this issue 1 year ago • 1 comments

image

If the current table is associated with the link field or lookup field of another base, modifying dbTableName will lead to a 500 error in modifying the link field cell.

In the original code, when updating the database name, the fkHostTableName in the relevant link field and lookup field was updated. However, the code query condition restricts only querying the field information under the current baseId. But since the cross-base link was introduced later, the fkHostTableName may come from different bases. At this time, a query of global fields is needed to ensure that the modification is correct.

tea-artist avatar Dec 28 '24 16:12 tea-artist

Deployment Status: ✅ Success 🔗 Preview URL: https://pr-1200.sealosgzg.site

github-actions[bot] avatar Dec 28 '24 19:12 github-actions[bot]

🧹 Preview Environment Cleanup

  • PR #1200 has been Merged
  • Preview environment has been deleted
  • Cleanup time: 2024-12-29T07:08:49.303Z

github-actions[bot] avatar Dec 29 '24 07:12 github-actions[bot]