V8-archive: Creating item in O2M doesn't set ID

Created on 2 Jul 2019  路  4Comments  路  Source: directus/v8-archive

Lets say I have a collection called sections. Creating a new card in the O2M field cards from sections item 15 like follows

{
  "cards": [
    {
      "note": "Test card"
    }
  ]
}

should result in the item being saved in the database as

| id | note | section |
|---|----------|--------|
| 1 | Test card | 15 |

invalid

Most helpful comment

@rijkvanzanten

I take a pull from o2m branch of APP to replicate the issue. I was not able to Select Existing or Add New card from APP. There are some vue errors in the console.

(1) Error after Add New

Screenshot_1

(2) Error after Select Existing

Screenshot_2

After clicking on Select Existing I was able to get popup to select the cards but when I submit it with Done it throws an error.

So I tried to check the API directly. Which works as expected. It seems that there is some issue from the APP in passing the payload.

All 4 comments

Hey @rijkvanzanten

Maybe this is duplicate of https://github.com/directus/app/issues/1712

Please check https://github.com/directus/app/issues/1712#issuecomment-496875714

No, that particular issue was fixed in https://github.com/directus/app/pull/1804, but it doesn't take care of the problem listed above. It's a separate issue.

@rijkvanzanten

I take a pull from o2m branch of APP to replicate the issue. I was not able to Select Existing or Add New card from APP. There are some vue errors in the console.

(1) Error after Add New

Screenshot_1

(2) Error after Select Existing

Screenshot_2

After clicking on Select Existing I was able to get popup to select the cards but when I submit it with Done it throws an error.

So I tried to check the API directly. Which works as expected. It seems that there is some issue from the APP in passing the payload.

yesnoyesnoyesnoyesnoyesno

Was this page helpful?
0 / 5 - 0 ratings

Related issues

metalmarco picture metalmarco  路  3Comments

HashemKhalifa picture HashemKhalifa  路  3Comments

rijkvanzanten picture rijkvanzanten  路  3Comments

24js picture 24js  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments