Open nhovratov opened 1 month ago
Were they deleted by these checks?
Seems like the condition is missing a -1 check for the childRowLanguage:
if ($parentRowLanguage >= 0 && $childRowLanguage !== $parentRowLanguage) {
Sadly, I don't know it anymore and I don't have a log. But shouldn't childRowLanguage >= 0
be false for -1
?
Sorry, I've copied my changed line childRowLanguage >= 0
is not in the original code.
This is an example of InlineForeignFieldNoForeignTableFieldChildrenParentLanguageDifferent in my instance:
I had a case where some inline children had the language -1, while the parent was the default language 1. These children got deleted, probably due to inconsistent parent/children language. The question is: is this intended? Or should language -1 be ignored? Because technically it is possible to select language ALL for child elements (TCA type language), and for some reason the editors did this.