]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
No automatic field groups for inline models
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 31 Aug 2022 18:53:40 +0000 (20:53 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 31 Aug 2022 18:53:40 +0000 (20:53 +0200)
src/adminmodel.php

index 127e79188d16816bf7cf8bcc0905bc4bf3b1d434..8b295b9f91c51d3cf60e2130a02baac430e808dd 100644 (file)
@@ -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),
-            );
         }
     }