mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 04:22:10 +02:00
Fix issue processwire/processwire-issues#942
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user