[Fusionforge-commits] FusionForge branch master updated. 8895cc8893f3adf6e975c8ea773b4b7aa5ee88b4

Alain Peyrat aljeux at fusionforge.org
Fri Aug 30 15:16:15 CEST 2013


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, master has been updated
       via  8895cc8893f3adf6e975c8ea773b4b7aa5ee88b4 (commit)
      from  f4bb01160a6fdffa51694b35f2e7ac00d3c938c5 (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 8895cc8893f3adf6e975c8ea773b4b7aa5ee88b4
Author: Alain Peyrat <alain.peyrat at alcatel-lucent.com>
Date:   Fri Aug 30 15:16:11 2013 +0200

    Nicer error message (no exit)

diff --git a/src/www/reporting/timecategory.php b/src/www/reporting/timecategory.php
index 94a321c..1013588 100644
--- a/src/www/reporting/timecategory.php
+++ b/src/www/reporting/timecategory.php
@@ -37,9 +37,9 @@ if (getStringFromRequest('submit')) {
 
 		$r = new ReportSetup();
 		if (!$r->addTimeCode($category_name)) {
-			exit_error($r->getErrorMessage());
+			$error_msg = $r->getErrorMessage();
 		} else {
-			$feedback=_('Successful');
+			$feedback = _('Successfully Added');
 		}
 
 	} elseif (getStringFromRequest('update')) {
@@ -47,9 +47,9 @@ if (getStringFromRequest('submit')) {
 		$r = new ReportSetup();
 
 		if (!$r->updateTimeCode($time_code,$category_name)) {
-			exit_error($r->getErrorMessage());
+			$error_msg = $r->getErrorMessage();
 		} else {
-			$feedback=_('Successful');
+			$feedback = _('Update Successful');
 		}
 
 		$time_code=false;

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

Summary of changes:
 src/www/reporting/timecategory.php |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list