* fix bug for WooYun-2016-218351.

This commit is contained in:
wangyidong
2016-06-28 13:36:00 +08:00
parent d3915c1dd0
commit 234a3466a2
5 changed files with 56 additions and 51 deletions
+3 -2
View File
@@ -237,14 +237,15 @@ class buildModel extends model
public function updateLinkedBug($build)
{
$bugs = empty($build->bugs) ? '' : $this->dao->select('*')->from(TABLE_BUG)->where('id')->in($build->bugs)->fetchAll();
$data = fixer::input('post')->get();
$now = helper::now();
$resolvedPairs = array();
if(isset($_POST['bugs']))
{
foreach($this->post->bugs as $key => $bugID)
foreach($data->bugs as $key => $bugID)
{
if(isset($_POST['resolvedBy'][$key]))$resolvedPairs[$bugID] = $this->post->resolvedBy[$key];
if(isset($_POST['resolvedBy'][$key]))$resolvedPairs[$bugID] = $data->resolvedBy[$key];
}
}