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, 6.0 has been updated
       via  e5a1f522e12f990481446a21fc3e378f4b50a105 (commit)
      from  31452b5f7bf99f9d036c5af0a48c1a21465a4bec (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=e5a1f522e12f990481446a21fc3e378f4b50a105

commit e5a1f522e12f990481446a21fc3e378f4b50a105
Author: Sylvain Beucler <[email protected]>
Date:   Wed Jul 1 14:31:10 2015 +0200

    stats: fix misleading label on statistics default empty graph

diff --git a/src/CHANGES b/src/CHANGES
index 52676d9..03249eb 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -1,5 +1,6 @@
 FusionForge 6.0.2:
 * Accounts: fix elliptic curve ssh keys support (Inria)
+* Project stats: fix misleading label on statistics default empty graph (Inria)
 * Mailing lists: fix description encoding depending on Mailman version (Inria 
& Thorsten Glaser)
 * Mailing lists: fix default list URL path (Inria)
 * Mailing lists: fix installation on CentOS (Inria)
diff --git a/src/www/project/stats/index.php b/src/www/project/stats/index.php
index de1261f..b8344cb 100644
--- a/src/www/project/stats/index.php
+++ b/src/www/project/stats/index.php
@@ -113,10 +113,12 @@ echo $HTML->openForm(array('action' => 
getStringFromServer('PHP_SELF'), 'method'
 </table>
 <?php
 echo $HTML->closeForm();
-if ($start == $end) {
-       echo $HTML->error_msg(_('Start and end dates must be different'));
-} elseif (!report_actgraph('project', $SPAN, $start, $end, $group_id, $area)) {
-       echo $HTML->error_msg(_('Error during graphic computation.'));
+if ($area) {
+       if ($start == $end) {
+               echo $HTML->error_msg(_('Start and end dates must be 
different'));
+       } elseif (!report_actgraph('project', $SPAN, $start, $end, $group_id, 
$area)) {
+               echo $HTML->error_msg(_('Error during graphic computation.'));
+       }
 }
 
 site_project_footer();

-----------------------------------------------------------------------

Summary of changes:
 src/CHANGES                     |  1 +
 src/www/project/stats/index.php | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to