This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Update action hook is called BEFORE updating when used in combination with recursive relationships and MySQL #10471
Closed
3 tasks done
Preflight Checklist
Describe the Bug
We have the following setup:
Bug does happen with MySQL adapter, does not happen with SqLite.
Bug is also happening with O2M interface, so it might be related with the recursive relationship - maybe update order?
Everything is working as expected for "normal" O2M relationships...
To Reproduce
pages
title
subpages
-> Tree view (relationship topages
, fkpage_id
, display templatetitle
)Root
->Child 1
Root
element und use tree view interface to changeChild 1
's title toChild1 - changed
Child1
instead of changed title (see below)Hook update (title should be "Child1 - changed")
Errors Shown
No response
What version of Directus are you using?
9.2.2
What version of Node.js are you using?
12.2
What database are you using?
MySQL 5.7
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying Directus?
locally
The text was updated successfully, but these errors were encountered: