Andrew Zhilin 11 年之前
父節點
當前提交
73e2822b45
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Mapper/BaseGroupedMapper.php

+ 1 - 1
Mapper/BaseGroupedMapper.php

@@ -37,7 +37,7 @@ abstract class BaseGroupedMapper extends BaseMapper
         if(array_key_exists("tab",$options) && $options["tab"]) {
         if(array_key_exists("tab",$options) && $options["tab"]) {
             $tabs = $this->getTabs();
             $tabs = $this->getTabs();
             if($this->currentTab) {
             if($this->currentTab) {
-                if($tabs[$name]["auto_created"]) {
+                if($tabs[$this->currentTab]["auto_created"]) {
                     throw new \Exception("New tab was added automatically when you have added field or group. You should close current tab before adding new one OR add tabs before adding groups and fields");
                     throw new \Exception("New tab was added automatically when you have added field or group. You should close current tab before adding new one OR add tabs before adding groups and fields");
                 } else {
                 } else {
                     throw new \Exception("You should close previous tab with end() before adding new tab");
                     throw new \Exception("You should close previous tab with end() before adding new tab");