Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Changing user field from M2O to User Created #65

Open
benhaynes opened this issue Oct 25, 2018 · 0 comments
Open

Changing user field from M2O to User Created #65

benhaynes opened this issue Oct 25, 2018 · 0 comments
Labels

Comments

@benhaynes
Copy link
Member

From directus created by maettyhawk : directus/directus#2179

There's some weird behaviour when I change a table's field "user" from M2O (referencing Directus user table) to User Created. As seen in screenshot 3 the change causes an error when trying to add a new entry. Also the table settings show a M2O relation for the "user" field, which is not displayed if one sets the field type to User Created or Modified from the very beginning.

Version Info

  • Directus version: 6.4.9
  • PHP version: 7.2
  • MySQL version: 5.7.21
  • Web server: Apache
  • OS name and version: Ubuntu

Expected Behavior

Changing a "user" field from M2O to User Modified/Created causes no error when trying to add a new entry to that table.

Actual Behavior

Changing a "user" field from M2O to User Modified/Created causes an error when trying to add a new entry to that table.

Steps to Reproduce

  1. Add a new table
  2. Add a new field "user" (M2O -> referencing directus_user -> id)
  3. Try to add a new entry (should work)
  4. Change the field type of "user" to User Modified or Created
  5. Try to add a new entry (error appears)

Schema Dump, Logs, or Screenshots

directus-1
directus-2
directus-3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant