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);
     }