The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings MonLabo
Summary Activity Tracker Tasks Docs SCM Files Dokuwiki Continious Integration Listes Sympa

SCM Repository

index 013123f..48352a7 100644 (file)
@@ -130,8 +130,7 @@ function generate_table_admin_for_teams() {
        if ( '0' != $number_of_teams ) {
                foreach ( $teams_information as $team_information ) {
                        $team_array = array();
-                       $team_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_two">'
-                                                                       .'<input type="hidden" name="submit_equipe" value="'.$team_information->id.'">'
+                       $team_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_two&submit_item='.$team_information->id.'">'
                                                                        .'<button type="submit">'.__( 'Modifier', 'mon-laboratoire' ).'</button></form>';
                        $team_array['id'] = $team_information->id;
                        $team_array['name_fr'] = '<small>'.$team_information->name_fr.'</small>';
@@ -204,8 +203,7 @@ function generate_table_admin_for_thematics() {
        if ( '0' != $number_of_thematics ) {
                foreach ( $thematics_information as $thematic_information ) {
                        $thematic_array = array();
-                       $thematic_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_three">'
-                                                                       .'<input type="hidden" name="submit_thematic" value="'.$thematic_information->id.'">'
+                       $thematic_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_three&submit_item='.$thematic_information->id.'">'
                                                                        .'<button type="submit">'.__( 'Modifier', 'mon-laboratoire' ).'</button></form>';
                        $thematic_array['id'] = $thematic_information->id;
                        $thematic_array['name_fr'] = '<small>'.$thematic_information->name_fr.'</small>';
@@ -274,8 +272,7 @@ function generate_table_admin_for_units() {
        if ( '0' != $number_of_units ) {
                foreach ( $units_information as $unit_information ) {
                        $unit_array = array();
-                       $unit_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_four">'
-                                                                       .'<input type="hidden" name="submit_unite" value="'.$unit_information->id.'">'
+                       $unit_array['modifier'] = '<form method="post" action="admin.php?page=MonLabo_edit_members_and_groups&tab=tab_four&submit_item='.$unit_information->id.'">'
                                                                        .'<button type="submit">'.__( 'Modifier', 'mon-laboratoire' ).'</button></form>';
                        $unit_array['id'] = $unit_information->id;
                        $unit_array['name_fr'] = '<small>'.$unit_information->name_fr.'</small>';