From 5031e8a122a596fc5082f77f855f3e57c09c895c Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Wed, 31 Aug 2022 20:53:40 +0200 Subject: [PATCH] No automatic field groups for inline models --- src/adminmodel.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/adminmodel.php b/src/adminmodel.php index 127e791..8b295b9 100644 --- a/src/adminmodel.php +++ b/src/adminmodel.php @@ -256,22 +256,12 @@ class IPF_Admin_ModelForm extends IPF_Form_Model function initFields($extra=array()) { parent::initFields($extra); - - if ($this->inlines) { - $this->field_groups[] = array('fields' => array_keys($this->fields)); - } - foreach ($this->inlines as $inline) { $name = $inline->getModelName(); $label = $inline->getLegend(); $this->fields[$name] = $inline->createField($extra); $this->fields[$name]->label = $label; - - $this->field_groups[] = array( - 'label' => $label, - 'fields' => array($name), - ); } } -- 2.49.0