View Issue Details

IDProjectCategoryView StatusLast Update
0009493mantisbtcustom fieldspublic2008-10-18 18:32
Reporterave Assigned Togiallu  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.2 
Target Version1.1.3Fixed in Version1.1.3 
Summary0009493: Removing custom fields from project causes application error 2800
Description

Because of a missing security token field, removing a custom field from a project results in an application error (2800).
Attached a trivial patch.

Steps To Reproduce
  1. Go to 'Edit project' screen.
  2. Add a custom field to the project.
  3. Try removing the custom field from the project.

Result: after the confirmation form is submitted, it reports application error 2800 with a message 'Invalid form security token. Did you submit the form twice by accident? '.

Additional Information

This problem was reported in 0009343:0018583, but I couldn't find any corresponding issue.
Sorry if this one is a duplicate.

TagsNo tags attached.
Attached Files
manage_proj_edit_page.php.patch (682 bytes)   
Index: manage_proj_edit_page.php
===================================================================
--- manage_proj_edit_page.php	(revision 5500)
+++ manage_proj_edit_page.php	(working copy)
@@ -527,7 +527,7 @@
 				<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}" . form_security_param( 'manage_proj_custom_field_remove' ), lang_get( 'remove_link' ) );
 				?>
 				</td>
 			</tr>

Activities

giallu

giallu

2008-08-06 03:43

reporter   ~0019058

Fixed in revision 5501 and 5502(trunk)

Related Changesets

MantisBT: master-1.1.x 8bd10da9

2008-08-06 03:42

giallu


Details Diff
Fix 9493: Removing custom fields from project causes application error 2800

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@5501 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009493
mod - manage_proj_edit_page.php Diff File

MantisBT: master f81ea229

2008-08-06 03:43

giallu


Details Diff
Fix 9493: Removing custom fields from project causes application error 2800

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5502 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009493
mod - manage_proj_edit_page.php Diff File