Skip to content

Commit

Permalink
Fixed #8457: Removing a userdefined field from project results in APP…
Browse files Browse the repository at this point in the history
…LICATION ERROR #203.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4652 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Oct 19, 2007
1 parent d46f8f0 commit 383726c
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions manage_proj_edit_page.php
Expand Up @@ -18,7 +18,7 @@
# along with Mantis. If not, see <http://www.gnu.org/licenses/>.

# --------------------------------------------------------
# $Id: manage_proj_edit_page.php,v 1.104.2.1 2007-10-13 22:33:39 giallu Exp $
# $Id: manage_proj_edit_page.php,v 1.104.2.2 2007-10-19 07:25:59 vboctor Exp $
# --------------------------------------------------------

require_once( 'core.php' );
Expand Down Expand Up @@ -493,15 +493,11 @@
<?php echo lang_get( 'actions' ); ?>
</td>
</tr>
<form method="post" action="manage_proj_custom_field_update.php">
<?php
$t_index = 0;

foreach( $t_custom_fields as $t_field_id ) {
$t_desc = custom_field_get_definition( $t_field_id );
$t_field_id = 'field_id_' . $t_index;
$t_sequence = 'sequence_' . $t_index;
$t_checkbox_id = 'checkbox_' . $t_index;
?>
<tr <?php echo helper_alternate_class() ?>>
<td>
Expand All @@ -521,25 +517,12 @@
<td class="center">
<?php
# You need global permissions to edit custom field defs
print_button( "manage_proj_custom_field_remove.php?field_id=$t_field_id&amp;project_id=$f_project_id", lang_get( 'remove_link' ) );
print_button( "manage_proj_custom_field_remove.php?field_id={$t_field_id}&amp;project_id={$f_project_id}", lang_get( 'remove_link' ) );
?>
</td>
</tr>
<?php
} # end for loop
?>
<tr <?php echo helper_alternate_class() ?>>
<td></td><td>
<input type="hidden" name="max_id" value ="<?php echo $t_index ?>" />
<input type="submit" name="Update" class="button" value="<?php echo lang_get( 'update' ) ?>" />
</td>
<td>
<input type="submit" name="Remove" class="button" value="<?php echo lang_get( 'field_remove_button' ) ?>" />
</td>
</tr>
</form>

<?php
}
?>
<tr>
Expand Down

0 comments on commit 383726c

Please sign in to comment.