luyadev / luya-module-admin

Administration base module for all LUYA admin modules
https://luya.io
MIT License
48 stars 56 forks source link

Relation gets lost when adding multiple relational records #742

Closed rolandschaub closed 1 year ago

rolandschaub commented 1 year ago

What steps will reproduce the problem?

When adding a record that has a relation to another record (e.g. an article to a journal issue) the relation gets lost when saving the record with the «Create and new» button.

What is the expected result?

The relation should not get lost so that multiple relational records can be added using the «Create and new» button.

What do you get instead? (A Screenshot can help us a lot!)

The relation gets lost.

nadar commented 1 year ago

Can you provide a screenshot? or a relation config? I have tested in the news module and works as expected:

there are no news, only 1 category and i am going to add articles based on the category relation, the category relation is not lost afterwards:

image

image

image

image

relation works as expected:

image

nadar commented 1 year ago

https://github.com/luyadev/luya-module-admin/pull/707