diff --git a/config_inc.php b/config_inc.php
index 846408234e..86f86f039d 100644
--- a/config_inc.php
+++ b/config_inc.php
@@ -44,7 +44,7 @@
#--------------------
# enter the exact url where the bugtracker is located
# used in the emailing system
- $g_login_url = "http://www.mydomain.com/mantis/";
+ $g_mantis_url = "http://www.mydomain.com/mantis/";
#--------------------
#--------------------
@@ -164,11 +164,28 @@
$g_view_assigned_cookie = $g_cookie_prefix."_VIEW_ASSIGNED_COOKIE";
# cookie values
- $g_string_cookie_val = $HTTP_COOKIE_VARS[$g_string_cookie];
- $g_project_cookie_val = $HTTP_COOKIE_VARS[$g_project_cookie];
- $g_view_all_cookie_val = $HTTP_COOKIE_VARS[$g_view_all_cookie];
- $g_view_reported_cookie_val = $HTTP_COOKIE_VARS[$g_view_reported_cookie];
- $g_view_assigned_cookie_val = $HTTP_COOKIE_VARS[$g_view_assigned_cookie];
+
+ $g_string_cookie_val = "";
+ $g_project_cookie_val = "";
+ $g_view_all_cookie_val = "";
+ $g_view_reported_cookie_val = "";
+ $g_view_assigned_cookie_val = "";
+
+ if ( isset( $g_string_cookie ) ) {
+ $g_string_cookie_val = $HTTP_COOKIE_VARS[$g_string_cookie];
+ }
+ if ( isset( $g_project_cookie ) ) {
+ $g_project_cookie_val = $HTTP_COOKIE_VARS[$g_project_cookie];
+ }
+ if ( isset( $g_view_all_cookie ) ) {
+ $g_view_all_cookie_val = $HTTP_COOKIE_VARS[$g_view_all_cookie];
+ }
+ if ( isset( $g_view_reported_cookie ) ) {
+ $g_view_reported_cookie_val = $HTTP_COOKIE_VARS[$g_view_reported_cookie];
+ }
+ if ( isset( $g_view_assigned_cookie ) ) {
+ $g_view_assigned_cookie_val = $HTTP_COOKIE_VARS[$g_view_assigned_cookie];
+ }
#--------------------
#--------------------
@@ -239,6 +256,9 @@
$g_bugnote_add = "bugnote_add".$g_php;
$g_bugnote_delete = "bugnote_delete".$g_php;
+ # documentation
+ $g_documentation_html = "documentation.html";
+
# report bug
$g_report_bug_page = "report_bug_page".$g_php;
$g_report_bug_advanced_page = "report_bug_advanced_page".$g_php;
@@ -349,4 +369,4 @@
#version
$g_mantis_version = "0.14.3";
#--------------------
-?>
+?>
\ No newline at end of file
diff --git a/documentation.html b/documentation.html
index dd74c32ec2..af091377ee 100644
--- a/documentation.html
+++ b/documentation.html
@@ -58,6 +58,15 @@
Account
@@ -302,6 +311,56 @@
Summary should be a short, one sentence description of the problem. It has a limit of 128 characters.
+
+
+
+Select the most apprpriate category for the report. These categories are defined per project by the project administrator
+
+
+
+Reproducibilty is the key to being able to quickly fix a bug.
+
+ always
+ sometimes
+ random
+ have not tried
+ unable to duplicate
+
+
+
+
+
+ block - prevents further work/progress from being made
+ crash - crashes the application or OS
+ major - major bug
+ minor - minor bug
+ tweak - needs tweaking
+ text - error in the text
+ trivial - being nitpicky
+ feature - requesting new feature
+
+
+
+
+A brief one line description of the problem
+
+
+
+A detailed description of the problem
+
+
+
+List the detailed steps to reproduce a problem. This is useful for bugs that take a while to show up or tricky cases. It would be best to use a format that looks like
+
+1. step 1
+2. step 2
+3. step 3
+
+
+
+Anything extra information that you didn't put into the Description should go here.
+
+
diff --git a/report_add.php3 b/report_add.php3
index 4372ea90f4..b7d513c75b 100644
--- a/report_add.php3
+++ b/report_add.php3
@@ -8,7 +8,8 @@
login_cookie_check() ?>
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
-
+?>
+
if ( !access_level_check_greater_or_equal( "viewer" ) ) {
# should be an access error page
header( "Location: $g_logout_page" );
@@ -140,7 +141,28 @@
PRINT "$s_must_enter_description ";
}
PRINT "";
- PRINT "$s_hit_back_msg";
+
+?>
+
+
}
### MYSQL ERROR
else if ( !$result ) {
diff --git a/report_bug_advanced_page.php3 b/report_bug_advanced_page.php3
index 151604ca6e..cfd46ef037 100644
--- a/report_bug_advanced_page.php3
+++ b/report_bug_advanced_page.php3
@@ -40,37 +40,37 @@
>
- echo $s_category ?>:
- [* echo $s_required ?>*]
+ echo $s_category ?> print_documentaion_link( "category" ) ?>:
+ * echo $s_required ?>*
echo $s_select_category ?>
- print_category_option_list() ?>
+ print_category_option_list( $f_category ) ?>
>
- echo $s_reproducibility ?>:
- [* echo $s_required ?>*]
+ echo $s_reproducibility ?> print_documentaion_link( "reproducibility" ) ?>:
+ * echo $s_required ?>*
echo $s_select_reproducibility ?>
- print_field_option_list( "reproducibility" ) ?>
+ print_field_option_list( "reproducibility", $f_reproducibility ) ?>
>
- echo $s_severity ?>:
- [* echo $s_required ?>*]
+ echo $s_severity ?> print_documentaion_link( "severity" ) ?>:
+ * echo $s_required ?>*
echo $s_select_severity ?>
- print_field_option_list( "severity" ) ?>
+ print_field_option_list( "severity", $f_severity ) ?>
@@ -84,7 +84,7 @@
- print_profile_option_list( get_current_user_field( "id " ) ) ?>
+ print_profile_option_list( get_current_user_field( "id " ), $f_profile_id ) ?>
@@ -98,7 +98,7 @@
echo $s_platform ?>:
-
+
>
@@ -106,7 +106,7 @@
echo $s_os ?>:
-
+
>
@@ -114,7 +114,7 @@
echo $s_os_version ?>:
-
+
>
@@ -127,7 +127,7 @@
- print_version_option_list() ?>
+ print_version_option_list( $f_product_version ) ?>
@@ -136,7 +136,7 @@
echo $s_product_build ?>
-
+
>
@@ -150,7 +150,7 @@
- print_assign_to_option_list() ?>
+ print_assign_to_option_list( $f_assign_id ) ?>
@@ -160,36 +160,36 @@
>
- echo $s_summary ?>:
- [* echo $s_required ?>*]
+ echo $s_summary ?> print_documentaion_link( "summary" ) ?>:
+ * echo $s_required ?>*
-
+
>
- echo $s_description ?>:
- [* echo $s_required ?>*]
+ echo $s_description ?> print_documentaion_link( "description" ) ?>:
+ * echo $s_required ?>*
-
+
>
- echo $s_steps_to_reproduce ?>:
+ echo $s_steps_to_reproduce ?> print_documentaion_link( "steps_to_reproduce" ) ?>:
-
+
>
- echo $s_additional_information ?>:
+ echo $s_additional_information ?> print_documentaion_link( "additional_information" ) ?>:
-
+
diff --git a/report_bug_page.php3 b/report_bug_page.php3
index d091bc1c60..f0ea11ec2e 100644
--- a/report_bug_page.php3
+++ b/report_bug_page.php3
@@ -47,64 +47,64 @@
>
- echo $s_category ?>:
- [* echo $s_required ?>*]
+ echo $s_category ?> print_documentaion_link( "category" ) ?>:
+ * echo $s_required ?>*
echo $s_select_category ?>
- print_category_option_list() ?>
+ print_category_option_list( $f_category ) ?>
>
- echo $s_reproducibility ?>:
- [* echo $s_required ?>*]
+ echo $s_reproducibility ?> print_documentaion_link( "reproducibility" ) ?>:
+ * echo $s_required ?>*
echo $s_select_reproducibility ?>
- print_field_option_list( "reproducibility" ) ?>
+ print_field_option_list( "reproducibility", $f_reproducibility ) ?>
>
- echo $s_severity ?>:
- [* echo $s_required ?>*]
+ echo $s_severity ?> print_documentaion_link( "severity" ) ?>:
+ * echo $s_required ?>*
echo $s_select_severity ?>
- print_field_option_list( "severity" ) ?>
+ print_field_option_list( "severity", $f_severity ) ?>
>
- echo $s_summary ?>:
- [* echo $s_required ?>*]
+ echo $s_summary ?> print_documentaion_link( "summary" ) ?>:
+ * echo $s_required ?>*
-
+
>
- echo $s_description ?>:
- [* echo $s_required ?>*]
+ echo $s_description ?> print_documentaion_link( "description" ) ?>:
+ * echo $s_required ?>*
-
+
>
- echo $s_additional_information ?>:
+ echo $s_additional_information ?> print_documentaion_link( "additional_information" ) ?>:
-
+