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

ID truncated at period #2171

Closed
beasteers opened this issue Jul 3, 2018 · 1 comment
Closed

ID truncated at period #2171

beasteers opened this issue Jul 3, 2018 · 1 comment

Comments

@beasteers
Copy link

beasteers commented Jul 3, 2018

I added some rows to a table via the API where the ID (data type is VARCHAR) is of the pattern [a-z]-[a-z0-9].[a-z]. When I view it on the table page it looks fine, but when I open the page, the ID is truncated at the period. If I save, it will save it as a new row (because the ID is different). But even when I edit the ID to make it match again, it still truncates at the period and saves it as a new row.

Version Info

  • Directus version and branch (Or commit hash): 6.4.9
  • PHP version: 7.1.17
  • MySQL version: Ver 14.14 Distrib 5.5.60, for debian-linux-gnu (x86_64) using readline 6.3
  • OS name and version: Debian GNU/Linux 8 (jessie)

Expected Behavior

ID should stay:
xxxxx-b827ebefb215.xxxx

Actual Behavior

Instead it saves as:
xxxxx-b827ebefb215

Steps to Reproduce

  1. Create table with ID of type VARCHAR (make visible, set length to 50 or something)
  2. Add row via API with ID with pattern abc-abc123.abc
  3. View in table. check id value
  4. Edit via form. check id value. ID should be truncated.
  5. Change ID to be the proper value and hit save.
  6. Now you should have two entries in your table. One with normal ID and one with truncated ID.
@benhaynes
Copy link
Sponsor Member

Kamino closed and cloned this issue to directus/directus-6-legacy

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants