mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Don't try to manageAssociations for a record that had errors
This commit is contained in:
@ -233,6 +233,11 @@ public class InsertAction extends AbstractQActionFunction<InsertInput, InsertOut
|
|||||||
List<QRecord> nextLevelInserts = new ArrayList<>();
|
List<QRecord> nextLevelInserts = new ArrayList<>();
|
||||||
for(QRecord record : insertedRecords)
|
for(QRecord record : insertedRecords)
|
||||||
{
|
{
|
||||||
|
if(CollectionUtils.nullSafeHasContents(record.getErrors()))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(record.getAssociatedRecords() != null && record.getAssociatedRecords().containsKey(association.getName()))
|
if(record.getAssociatedRecords() != null && record.getAssociatedRecords().containsKey(association.getName()))
|
||||||
{
|
{
|
||||||
for(QRecord associatedRecord : CollectionUtils.nonNullList(record.getAssociatedRecords().get(association.getName())))
|
for(QRecord associatedRecord : CollectionUtils.nonNullList(record.getAssociatedRecords().get(association.getName())))
|
||||||
|
Reference in New Issue
Block a user