diff --git a/module/action/control.php b/module/action/control.php index 92284c76e4..971a251e50 100755 --- a/module/action/control.php +++ b/module/action/control.php @@ -376,7 +376,7 @@ class action extends control /* Check type of siblings. */ $siblings = $this->dao->select('DISTINCT type')->from(TABLE_EXECUTION)->where('deleted')->eq(0)->andWhere('parent')->eq($execution->parent)->fetchPairs('type'); - if($execution->type == 'stage' and (isset($bsiblings['sprint']) or isset($siblings['kanban']))) die(js::alert($this->lang->action->hasOtherType[$execution->type])); + if($execution->type == 'stage' and (isset($siblings['sprint']) or isset($siblings['kanban']))) die(js::alert($this->lang->action->hasOtherType[$execution->type])); if(($execution->type == 'sprint' or $execution->type == 'kanban') and isset($siblings['stage'])) die(js::alert($this->lang->action->hasOtherType[$execution->type])); /* If parent stage is not exists, you should recover its parent stages, refresh status. */