[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 0a031d63d13277adaaeb8fc80aac7189ce7bebb0
Franck Villaume
nerville at fusionforge.org
Mon Mar 10 11:21:37 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, Branch_5_3 has been updated
via 0a031d63d13277adaaeb8fc80aac7189ce7bebb0 (commit)
via 64eae6c80f09c0d6f9648b37cedb94daeac80888 (commit)
from d3ef5ce2489de83dce2e4ea70f2f0810cd1a9dfc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0a031d63d13277adaaeb8fc80aac7189ce7bebb0
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Mon Mar 10 11:20:23 2014 +0100
admin page: add missing required
diff --git a/src/www/admin/index.php b/src/www/admin/index.php
index b60c56f..d0a7fda 100644
--- a/src/www/admin/index.php
+++ b/src/www/admin/index.php
@@ -101,7 +101,7 @@ $abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','
<?php
echo '<form action="globalroleedit.php" method="post"><p>';
- echo '<input type="text" name="role_name" size="10" value="" />';
+ echo '<input type="text" name="role_name" size="10" value="" required="required" />';
echo '<input type="submit" name="add" value="'._("Create Role").'" /></p></form>';
?></li>
</ul>
commit 64eae6c80f09c0d6f9648b37cedb94daeac80888
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Mon Mar 10 11:20:04 2014 +0100
plugin hudson: fix jqplot pie for test result
diff --git a/src/plugins/hudson/include/HudsonTestResult.class.php b/src/plugins/hudson/include/HudsonTestResult.class.php
index 7e68b5f..b46789e 100644
--- a/src/plugins/hudson/include/HudsonTestResult.class.php
+++ b/src/plugins/hudson/include/HudsonTestResult.class.php
@@ -1,7 +1,7 @@
<?php
/**
* Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013-2014, Franck Villaume - TrivialDev
*
* This file is a part of Fusionforge.
*
@@ -116,17 +116,18 @@ class HudsonTestResult {
$pie_vals = array();
$pie_labels[0] = vsprintf(_("Pass (%s)"), $this->getPassCount());
$pie_vals[0] = $this->getPassCount();
- $pie_labels[2] = vsprintf(_("Fail (%s)"), $this->getFailCount());
+ $pie_labels[1] = vsprintf(_("Fail (%s)"), $this->getFailCount());
$pie_vals[1] = $this->getFailCount();
$pie_labels[2] = vsprintf(_("Skip (%s)"), $this->getSkipCount());
$pie_vals[2] = $this->getSkipCount();
echo '<script type="text/javascript">//<![CDATA['."\n";
echo 'var data'.$chartid.' = new Array();';
for ($i = 0; $i < count($pie_vals); $i++) {
- echo 'data'.$chartid.'.push([\''.htmlentities($pie_labels[0]).'\',\''.$pie_vals[1].'\']);';
+ echo 'data'.$chartid.'.push([\''.htmlentities($pie_labels[$i]).'\',\''.$pie_vals[$i].'\']);';
}
echo 'var plot'.$chartid.';';
echo 'jQuery(document).ready(function(){
+ console.log(data'.$chartid.');
plot'.$chartid.' = jQuery.jqplot (\'chart'.$chartid.'\', [data'.$chartid.'],
{
title : \'Test result: '.$this->getPassCount().'/'.$this->getTotalCount().'\',
-----------------------------------------------------------------------
Summary of changes:
src/plugins/hudson/include/HudsonTestResult.class.php | 7 ++++---
src/www/admin/index.php | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list