浏览代码

Fix for PR1345

Dean de Bree 12 年之前
父节点
当前提交
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);
     }