[Fusionforge-commits] r13669 - in trunk/src/plugins/projects_hierarchy: common view

Franck VILLAUME nerville at fusionforge.org
Sun Jul 3 19:29:12 CEST 2011


Author: nerville
Date: 2011-07-03 19:29:12 +0200 (Sun, 03 Jul 2011)
New Revision: 13669

Modified:
   trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
   trunk/src/plugins/projects_hierarchy/view/admin_project_link.php
Log:
fix label & cleanup

Modified: trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php
===================================================================
--- trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2011-07-02 10:54:29 UTC (rev 13668)
+++ trunk/src/plugins/projects_hierarchy/common/projects_hierarchyPlugin.class.php	2011-07-03 17:29:12 UTC (rev 13669)
@@ -177,7 +177,7 @@
 	 * @param	integer	group_id to serach for
 	 * @param	string	parent or child ?
 	 * @param	boolean	recurcive or not ?
-	 * @param	string validated or pending or any relation ?
+	 * @param	string	validated or pending or any relation ?
 	 * @return	array	array of arrays with group_id of parent or childs
 	 * @access	public
 	 */
@@ -218,6 +218,7 @@
 			}
 			default: {
 				return $localFamily;
+				break;
 			}
 		}
 		if ($res && db_numrows($res) > 0) {

Modified: trunk/src/plugins/projects_hierarchy/view/admin_project_link.php
===================================================================
--- trunk/src/plugins/projects_hierarchy/view/admin_project_link.php	2011-07-02 10:54:29 UTC (rev 13668)
+++ trunk/src/plugins/projects_hierarchy/view/admin_project_link.php	2011-07-03 17:29:12 UTC (rev 13669)
@@ -69,7 +69,7 @@
 		$childGroup = group_get_object($pendingChild[0][0]);
 		echo '<form method="post" action="/plugins/'.$projectsHierarchy->name.'/?type=group&pluginname='.$projectsHierarchy->name.'&action=validateRelationship&id='.$group_id.'">';
 		echo '<input type="hidden" name="validation_id" value="'.$pendingChild[0][0].'" />';
-		echo _('Validate parent').' '.$childGroup->getPublicName();
+		echo _('Validate child').' '.$childGroup->getPublicName();
 		echo html_build_select_box_from_arrays(array(1,0), array(_('Yes'), _('No')), 'validation_status', 'xzxz', false);
 		echo '<input type="submit" value="'. _('Send') .'" />';
 		echo '</form>';




More information about the Fusionforge-commits mailing list