1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 20:11:46 +02:00
This commit is contained in:
Ryan Cramer
2019-09-25 06:48:26 -04:00
parent b80df87c82
commit f495baa911

View File

@@ -1756,7 +1756,10 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
$data['repeaterFields'] = array();
$data['fieldContexts'] = array();
foreach($field->get('repeaterFields') as $fid) {
$a = $field->get('repeaterFields');
if(!is_array($a)) $a = array();
foreach($a as $fid) {
$f = $this->wire('fields')->get((int) $fid);
if(!$f) continue;
$data['repeaterFields'][] = $f->name;