Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhil authored and rande committed Aug 19, 2014
1 parent 60a15c0 commit 73e2822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mapper/BaseGroupedMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function with($name, array $options = array())
if(array_key_exists("tab",$options) && $options["tab"]) {
$tabs = $this->getTabs();
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");
} else {
throw new \Exception("You should close previous tab with end() before adding new tab");
Expand Down

0 comments on commit 73e2822

Please sign in to comment.