Dean de Bree 12 лет назад
Родитель
Сommit
d5e9cfd1a9
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Mapper/BaseGroupedMapper.php

+ 2 - 1
Mapper/BaseGroupedMapper.php

@@ -67,8 +67,9 @@ abstract class BaseGroupedMapper extends BaseMapper
      */
     protected function addFieldToCurrentGroup($fieldName) 
     {
+        $currentGroup = $this->getCurrentGroupName();
         $groups = $this->getGroups();
-        $groups[$this->getCurrentGroupName()]['fields'][$fieldName] = $fieldName;
+        $groups[$currentGroup]['fields'][$fieldName] = $fieldName;
         $this->setGroups($groups);
     }