mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +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:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user