View Issue Details

IDProjectCategoryView StatusLast Update
0009396mantisbttaggingpublic2009-01-15 11:26
Reportermthibeault Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a1 
Fixed in Version1.2.0a3 
Summary0009396: Wrong error message for tag attach
Description

When attaching a tag, the error messages are wrong.

When a tag needs to be created and the user doesn't have the appropriate access level, Mantis returns the invalid name error.
When a tag name is invalid, Mantis returns the access denied error.

Additional Information

To solve this issue, error messages just needs to be switched.

TagsNo tags attached.
Attached Files
tag_error_messages.diff (800 bytes)   
diff --unified Copy of mantisbt/tag_attach.php mantisbt/tag_attach.php
--- Copy of mantisbt/tag_attach.php	2008-11-27 19:09:15.000000000 -0500
+++ mantisbt/tag_attach.php	2008-11-28 11:31:12.805962200 -0500
@@ -92,10 +92,11 @@
 		foreach( $t_tags_failed as $t_tag_row ) {
 			echo '<tr ',helper_alternate_class(),'>';
 			if ( -1 == $t_tag_row['id'] ) {
-				echo '<td class="category">', lang_get( 'tag_invalid_name' ), '</td>';
-			} elseif ( -2 == $t_tag_row['id'] ) {
 				echo '<td class="category">', lang_get( 'tag_create_denied' ), '</td>';
+			} elseif ( -2 == $t_tag_row['id'] ) {
+				echo '<td class="category">', lang_get( 'tag_invalid_name' ), '</td>';
 			}
+
 			echo '<td>', string_html_specialchars( $t_tag_row['name'] ), '</td></tr>';
 			
 			if ( !is_blank( $t_tag_string ) ) {

tag_error_messages.diff (800 bytes)   

Activities

mthibeault

mthibeault

2008-11-28 11:37

reporter   ~0020098

Added a simple patch for the error messages.

grangeway

grangeway

2008-11-29 09:30

reporter   ~0020112

Hello,

I've fixed this issue in my local git repository

Related Changesets

MantisBT: master 5f5a1f1f

2008-11-29 09:29

Paul Richards


Details Diff
0009396: Wrong error message for tag attach Affected Issues
0009396
mod - tag_attach.php Diff File