[Fusionforge-commits] FusionForge branch master updated. 77d84db5083bf2b191959c09cd05ea301c25acf3

Franck VILLAUME nerville at fusionforge.org
Thu Jan 9 19:23:48 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, master has been updated
       via  77d84db5083bf2b191959c09cd05ea301c25acf3 (commit)
      from  1b343ed05615a19944192430f1da577e4f10a130 (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 77d84db5083bf2b191959c09cd05ea301c25acf3
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Thu Jan 9 19:23:20 2014 +0100

    tracker: set h2 when needed.

diff --git a/src/common/tracker/views/form-addextrafieldoption.php b/src/common/tracker/views/form-addextrafieldoption.php
index ec4c448..51ee91d 100644
--- a/src/common/tracker/views/form-addextrafieldoption.php
+++ b/src/common/tracker/views/form-addextrafieldoption.php
@@ -36,11 +36,11 @@
 		$title = sprintf(_('Add/Update Custom Field Elements in %s'), $ath->getName());
 		$ath->adminHeader(array('title'=>$title));
 
+		echo '<h2>'._('Custom field name')._(': ').$ac->getName().'</h2>';
 		$rows=count($efearr);
 		if ($rows > 0) {
 
 			?>
-			<h2><?php echo _('Custom field name')._(': ').$ac->getName() ?></h2>
 			<form action="<?php echo 'index.php?group_id='.$group_id.'&atid='.$ath->getID().'&boxid='.$boxid; ?>" method="post">
 			<?php
 			$title_arr=array();
@@ -94,7 +94,7 @@
 			<?php
 
 		} else {
-			echo "\n<strong>"._('You have not defined any elements')."</strong>";
+			echo "\n<strong>"._('You have not defined any elements.')."</strong>";
 		}
 		?>
 		<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&boxid='.$boxid.'&atid='.$ath->getID(); ?>" method="post">
diff --git a/src/common/tracker/views/form-updateextrafieldelement.php b/src/common/tracker/views/form-updateextrafieldelement.php
index 45f53e9..07b9450 100644
--- a/src/common/tracker/views/form-updateextrafieldelement.php
+++ b/src/common/tracker/views/form-updateextrafieldelement.php
@@ -3,6 +3,7 @@
  * Tracker Facility
  *
  * Copyright 2010 (c) FusionForge Team
+ * Copyright 2014, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -45,6 +46,7 @@ if (!$ac || !is_object($ac)) {
 		$ath->adminHeader(array('title'=>$title));
 
 ?>
+			<h2><?php echo _('Custom field name')._(': ').$ac->getName() ?></h2>
 			<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
 			<input type="hidden" name="update_opt" value="y" />
 			<input type="hidden" name="id" value="<?php echo $ao->getID(); ?>" />
@@ -64,7 +66,7 @@ if (!$ac || !is_object($ac)) {
 			<?php echo $ath->statusBox('status_id',$ao->getStatusID(),false,false); ?>
 			<?php } ?>
 
-			<div class="warning"><?php echo _('It is not recommended that you change the custom field name because other things are dependent upon it. When you change the custom field name, all related items will be changed to the new name') ?>
+			<div class="warning"><?php echo _('It is not recommended that you change the custom field name because other things are dependent upon it. When you change the custom field name, all related items will be changed to the new name.') ?>
 			</div>
 			<p>
 			<input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>

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

Summary of changes:
 src/common/tracker/views/form-addextrafieldoption.php     |    4 ++--
 src/common/tracker/views/form-updateextrafieldelement.php |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list