Browse Source

Fix for PR1345

Dean de Bree 12 năm trước cách đây
mục cha
commit
d5e9cfd1a9
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
     }