V8-archive: Many to one Cannot add new items

Created on 17 Jul 2019  路  3Comments  路  Source: directus/v8-archive

Bug Report

Many to one Cannot add new items

Steps to Reproduce

  1. Create a collection blog, add field title, content
  2. Create a collection blog_like and add a field blogid (many to one)
  3. Setting Public Permissions
  4. Call the interface to add like
    this.$client.createItem("blog_like",{blogid: 1}).then((res) => { console.log(res) })
    4.See error
    > Statement could not be executed (23000 - 1048 - Column 'action_by' cannot be null)

image

Expected Behavior

Many to one Cannot add new entries

Actual Behavior

It used to work, but I don't know why it suddenly stopped working.
Maybe because of the update of jsSDK, maybe the problem of api, maybe the problem of app.
Hope to be fix

Technical Details

  • Device: [Desktop]
  • OS: [Windows 10.1809]
  • Web Server: [Nginx:1.17.0]
  • PHP Version: [7.3.6]
  • Database: [5.7.26]
  • API Version: [2.3.0]
  • APP Version: [7.7]
  • Install Method: [cloned master branch]
bug

Most helpful comment

Fixed in #1126

All 3 comments

@cdwmhcc

May I have a dump SQL file?

Fixed in #1126

Fixed in #1126

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

24js picture 24js  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments

binary-koan picture binary-koan  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments

Nitwel picture Nitwel  路  3Comments