Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form component displays _id(s) instead of the display column values for related tables #15005

Open
1 task done
otichy opened this issue Nov 10, 2024 · 2 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@otichy
Copy link

otichy commented Nov 10, 2024

Checklist

  • I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Cloud
    • Tenant ID: ffuk

Describe the bug
I have authors, titles and title_author tables with n:n relationship between authors and titles (via supabase/postgres). In the data tables or in the table element, the multiple records of authors on the title or multiple titles on the author are displayed correctly by the selected display column (e.g. authors.full_name and titles.title), can be added, deleted etc. But on the form element, the multiple records are displayed by the _id column. New records can be searched and added, but the old ones cannot be deleted (both in design and preview).

To Reproduce
Create an n:n relationship of two tables via a third one where multiple records from one table are associated with a record in the second table. Set display columns. Generate a table with edit modal form or a form. Open the form and check the field with multiple related records.

Expected behavior
The form should have the multiple related records displayed by the display column and it should allow the deletion of those records.

Screenshots
Records for titles in the authors table correctly displayed
image

Records for titles in the authors form incorrectly displayed as _ids
image

App Export
I am happy to export, but should I encrypt it?

@otichy otichy added the bug Something isn't working label Nov 10, 2024
@Budibase Budibase deleted a comment from otichy Nov 15, 2024
@aptkingston
Copy link
Member

aptkingston commented Nov 15, 2024

Thanks for the export @otichy. I've got it and can reproduce the issue. I've just deleted your comment with the export as it contains credentials to your Supabase Postgres DB.

@samwho samwho self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants