From 94ca2b8e9a2b3967453d4f579577ca85b44cc9b8 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Mon, 5 Sep 2022 09:24:07 -0400 Subject: [PATCH] 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. --- .../Fieldtype/FieldtypeRepeater/InputfieldRepeater.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module index 7b72d98e..a5b49f7c 100644 --- a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module +++ b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module @@ -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'); }