Jake Vanderwerf
2 days ago 235ce5716edc2f7cbe80fdccf26eac7269587839
inc/registrar/Registrar.php
@@ -724,9 +724,10 @@
   public function getSections():array
   {
      $allSections = array_map(function($section) {
         return $section->getConfig;
         return $section->getConfig();
      }, $this->sections);
      if (!empty($this->sectionOrder)) {
         $allSections['order'] = $this->sectionOrder;
      }
@@ -759,13 +760,11 @@
         foreach ($sections as $s) {
            $section = new Section($s, $this);
            $section->setTitle(ucwords(implode(' ', explode('-', $s))));
            $sectionFields = array_map(function ($f) {
               return $f['name'];
            }, array_filter($fields, function ($f) use ($s) {
            $sectionFields = array_filter($fields, function ($f) use ($s) {
               $tmp = array_key_exists('section', $f) && !is_null($f['section']) ? $f['section'] : 'main';
               return $s === $tmp;
            }));
            $section->setFields($sectionFields);
            });
            $section->setFields(array_keys($sectionFields));
            $this->sections[$s] = $section;
         }
      }