diff --git a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module index a7cc006c..b62ea945 100644 --- a/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module +++ b/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module @@ -298,6 +298,7 @@ class InputfieldRepeater extends Inputfield implements InputfieldItemList { $cnt = 0; $numVisible = 0; $numOpen = 0; + $isPost = $this->wire('input')->requestMethod('POST'); // create field for each repeater iteration foreach($value as $key => $page) { @@ -357,10 +358,14 @@ class InputfieldRepeater extends Inputfield implements InputfieldItemList { $wrap = $this->wire('modules')->get('InputfieldFieldset'); $wrap->addClass('InputfieldRepeaterItem InputfieldNoFocus'); $wrap->entityEncodeLabel = false; - $wrap->label = - "" . - $this->entityEncode($this->renderRepeaterLabel($label, ++$cnt, $page)) . - ""; + if(!$isPost) { + $wrap->label = + "" . + $this->entityEncode($this->renderRepeaterLabel($label, ++$cnt, $page)) . + ""; + } else { + $wrap->label = "$label " . (++$cnt); + } $wrap->name = "repeater_item_{$page->id}"; $wrap->wrapAttr('data-page', $page->id); $wrap->wrapAttr('data-type', $this->getRepeaterItemType($page));