fix: Insert entscheidet fail closed auf den komponierten Blöcken statt auf Client-Text; Update warnt bei Wechsel der Schleifen-Art unter unveränderten Kindern (X3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
dadc1f3ec4
commit
5b52e18a31
@@ -136,4 +136,23 @@ abstract class DiviWriteAbility implements Ability, RequiresDiviFeatures
|
||||
|
||||
return LoopContext::fromChain($chain);
|
||||
}
|
||||
|
||||
/** @param list<string> $names */
|
||||
protected static function loopWarning(array $names, LoopScope $from, LoopScope $to): string
|
||||
{
|
||||
$where = $to->active()
|
||||
? sprintf(
|
||||
'jetzt in einer Divi-Schleife vom Typ: %s (vorher: %s); passen sie nicht zu dieser Art, zeigt Divi '
|
||||
. 'sie leer oder mit Daten eines anderen Objekts mit derselben ID',
|
||||
$to->label(),
|
||||
$from->active() ? $from->label() : 'keine Schleife'
|
||||
)
|
||||
: 'jetzt außerhalb jeder Divi-Schleife; Divi zeigt sie dort leer';
|
||||
|
||||
return sprintf(
|
||||
'Schleifen-Inhalte (%s) liegen %s. Zurückverschieben oder die Inhalte anpassen.',
|
||||
implode(', ', $names),
|
||||
$where
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user