View Issue Details

IDProjectCategoryView StatusLast Update
0007764mantisbtscriptingpublic2008-06-17 02:44
Reporteropi Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.1.2 
Summary0007764: APPLICATION WARNING #100: Configuration option 'category_enum_string' not found
Description

Hi

If i check a item at the "View Issues" Page and select from popupmenu "Update Category" i get with some browsers a very big button with all Category entries and at the end some: APPLICATION WARNING 100: Configuration option 'category_enum_string' not found.
warnings. (displayed as entries in the popupmenu)

The same happen if i use the "Update View Status" function.

The cause is that here are really such Text in the source of the Page (take a look at the source) but IE and Firefox doesn't display them. Both display insted an empty Item at the end.

What can i do to avoid that???
Is here a fix for that?

Best regards Opi

Steps To Reproduce

select a Issue on the View Issues page
select "Update Category" from popup menu
click Ok
on the next page (source) the warnings appear.

TagsNo tags attached.
Attached Files
bug_actiongroup_page.php.diff (1,243 bytes)   
--- D:/xampp/xampp/htdocs/mantis/bug_actiongroup_page.php	Sun Feb 25 15:41:15 2007
+++ D:/xampp/xampp/htdocs/mantis/bug_actiongroup_page_new.php	Sun Feb 25 16:10:04 2007
@@ -136,28 +136,24 @@
 			$t_question_title		= lang_get( 'category_bugs_conf_msg' );
 			$t_button_title			= lang_get( 'category_group_bugs_button' );
 			$t_form					= 'category';
-			$t_request				= 'category';
 			break;
 
 		case 'VIEW_STATUS' :
 			$t_question_title		= lang_get( 'view_status_bugs_conf_msg' );
 			$t_button_title			= lang_get( 'view_status_group_bugs_button' );
-			$t_form				= 'view_status';
-			$t_request			= 'view_status';
+			$t_form					= 'view_state';
 			break;
 		
 		case 'UP_FIXED_IN_VERSION':
 			$t_question_title		= lang_get( 'fixed_in_version_bugs_conf_msg' );
 			$t_button_title			= lang_get( 'fixed_in_version_group_bugs_button' );
 			$t_form					= 'fixed_in_version';
-			$t_request				= 'fixed_in_version';
 			break;
 
 		case 'UP_TARGET_VERSION':
 			$t_question_title		= lang_get( 'target_version_bugs_conf_msg' );
 			$t_button_title			= lang_get( 'target_version_group_bugs_button' );
 			$t_form					= 'target_version';
-			$t_request				= 'target_version';
 			break;
 
 		case 'CUSTOM' :
bug_actiongroup_page.php.diff (1,243 bytes)   

Activities

vboctor

vboctor

2007-02-24 01:44

manager   ~0014095

I wasn't able to reproduce this problem on this installation. Please check and let me know.

opi

opi

2007-02-24 17:58

reporter   ~0014102

Last edited: 2007-02-24 18:11

Ok then i'll try to explain again because the Bug still exists.
If i log in into e.g. http://www.futureware.biz/ (here my Access Level
is developer)and go to the Site "View Issues" (Page http://www.futureware.biz/mantisdemo/view_all_bug_page.php)
select one Item (e.g. 0000784) scroll down and select from the
popupmenu "Update Category" and click "OK" then i get the Page

http://www.futureware.biz/mantisdemo/bug_actiongroup_page.php?bug_arr%5B%5D=784&action=UP_CATEGORY

here the Source of this Site contain the follow part:
...
<input type="hidden" name="action" value="UP_CATEGORY" />
<input type="hidden" name="bug_arr[]" value="784" />
<table class="width75" cellspacing="1">
<tr class="row-1">
<td class="category">
Choose issues category </td>
<td>
<select name="category"><option value="GUI">GUI</option><option value="Other">Other</option><option value="Website">Website</option><p style="color:red">APPLICATION WARNING #100: Configuration option 'category_enum_string' not found.

<p style="color:red">APPLICATION WARNING #100: Configuration option 'category_enum_string' not found.

<p style="color:red">APPLICATION WARNING #300: String 'category_enum_string' not found.

<option value=""></option></select> </td>

</tr>

<tr>
...

Hope you can reproduce it now.
Hint: Search in the source for "APPLICATION WARNING"

BTW: the source of the site is not easy readable because all is <select>
Options are in one Line. IMHO the Options should get a Linefeed after
every </option> tag.

Best Regards
Opi

EDIT: i would like to mention that it's the same on my own installation. :-(
The above is a example on the "free" mantisdemo. i thought it's an issue on my
own install but the same happen on the mantisdemo so it seems like a bug.

exk72

exk72

2007-02-24 23:18

reporter   ~0014103

see if that helps ... is related to:

other forms use the same function to display the list

if ( $t_request > '' ) {
print_enum_string_option_list( $t_request, FIXED );
}

Not that I know how that section fits into the big picture.

opi

opi

2007-02-27 01:24

reporter   ~0014111

Yep that fix the issue.
But i run the latest release and the diff was for the CVS tree so
i patch my File by Hand and get not such Error on the Page.

could it included in the CVS?

Best Regards
Opi

opi

opi

2007-04-06 18:23

reporter   ~0014328

Is here a cause why exk72's fix i not yet commited to the CVS tree?
At least here his patch fix the issue.

vboctor

vboctor

2008-06-05 02:30

manager   ~0018009

Fixed as part of svn:5326
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5326&view=rev

vboctor

vboctor

2008-06-05 02:49

manager   ~0018012

Fixed in 1.2.x by svn:5327
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5327&view=rev