Fixed "Quality Trend" chart when warningsPlugin.data[build][key] is NaN (no any of meta_key in build_meta table).

Fixed doubling of the data in the "Error" tab (Build view)
This commit is contained in:
corpsee 2016-04-09 19:33:38 +06:00
parent 2ddda7711e
commit 65d3d11c14
2 changed files with 2 additions and 3 deletions

View file

@ -149,7 +149,6 @@
</tr>
</thead>
<tbody>
<?php print $data['error_html']; ?>
</tbody>
</table>
</div>

View file

@ -101,8 +101,8 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
var i = 0;
for (var key in self.keys) {
self.chartData.datasets[i].data.push(parseInt(self.data[build][key]));
var value = parseInt(self.data[build][key]) || 0;
self.chartData.datasets[i].data.push(value);
i++;
}
}