1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00

Fix issue where repeater family-friendly depth setting wasn't working when depth setting in field config was set to 1. Previously it only worked when depth setting was set to 2 or higher.

This commit is contained in:
Ryan Cramer
2022-09-05 09:24:07 -04:00
parent 6ca5eac61b
commit 94ca2b8e9a

View File

@@ -352,7 +352,7 @@ class InputfieldRepeater extends Inputfield implements InputfieldItemList {
$label = $this->field->getLabel();
if(!$label) $label = ucfirst($this->field->name);
if((int) $this->repeaterDepth > 1 && (int) $this->familyFriendly) {
if((int) $this->repeaterDepth > 0 && (int) $this->familyFriendly) {
$this->addClass('InputfieldRepeaterFamilyFriendly', 'wrapClass');
}