diff --git a/module/branch/control.php b/module/branch/control.php index cab50ec3ff..05204dee72 100644 --- a/module/branch/control.php +++ b/module/branch/control.php @@ -324,7 +324,7 @@ class branch extends control $targetBranch = $this->branch->mergeBranch($productID, $branchIdList, $postData); if(dao::isError()) return $this->sendError(dao::getError()); - $this->loadModel('action')->create('branch', $targetBranch, 'MergedBranch', '', implode(',', $mergedBranches)); + $this->loadModel('action')->create('branch', $targetBranch, 'MergedBranch', '', implode(',', array_keys($mergedBranches))); if(dao::isError()) return $this->sendError(dao::getError()); } return $this->sendSuccess(array('load' => true, 'closeModel' => true));