mirror of
https://github.com/processwire/processwire.git
synced 2025-08-26 08:04:38 +02:00
Fix issue processwire/processwire-issues#97 where using {images.count} in repeater label caused issue with loading images in the repeater
This commit is contained in:
@@ -108,6 +108,17 @@ class InputfieldRepeater extends Inputfield implements InputfieldItemList {
|
||||
*
|
||||
*/
|
||||
public function ___renderRepeaterLabel($label, $cnt, Page $page) {
|
||||
|
||||
static $allowRender = null;
|
||||
if(is_null($allowRender)) {
|
||||
$allowRender = true;
|
||||
if($this->wire('input')->get('repeater_edit')) {
|
||||
$allowRender = false;
|
||||
} else if(count($_POST) && !$this->wire('config')->ajax) {
|
||||
$allowRender = false;
|
||||
}
|
||||
}
|
||||
if(!$allowRender) return $label;
|
||||
|
||||
$out = '';
|
||||
$repeaterTitle = $this->field ? $this->field->get('repeaterTitle') : '';
|
||||
|
Reference in New Issue
Block a user