View Issue Details

IDProjectCategoryView StatusLast Update
0004520mantisbtbugtrackerpublic2004-11-06 06:01
ReporterOrnithopter Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Versiongit trunk 
Summary0004520: Form information lost on submit
Description

If you report a bug and miss a required field
and/or enter incorrect data into a validated
custom field you get redirected to an error page.
If you hit the back button, you lose all the info
you just entered.

Additional Information

This is only an issue in IE. Firefox automagically saves
all your form info. Since 96% of the internet uses IE, I
think this is an error worth fixing.

TagsNo tags attached.

Relationships

duplicate of 0003729 closedthraxisp When using the browser's back button, the form is cleared out. 

Activities

Ornithopter

Ornithopter

2004-09-12 21:22

reporter   ~0007532

A quick work around / solution (depending on
how anal you are) can be found at:

http://javascript.internet.com/forms/cookie-form-saver.html

It took me less than 20 minutes to get the
form saving to work with minor adjustments
to the html_api. I made adjustments so that
I could pass in the required 'onload' and
'onunload' event hanlers:

html_page_top2("onload=\"cookieForms('open', 'report_bug_form')\" onunload=\"cookieForms('save', 'report_bug_form')\"");

html_page_top2a($p_body_options)

function html_body_begin($p_body_options) {
echo "<body $p_body_options>", "\n";
}

Other than that, one line was added in bug_report_page.php:

Line 91
added: <script language="javascript" src="javascript/form_saver.js"></script>

form_saver.js is just a copy and paste from the site above.
It seems to work for me, so I thought I'd share the solution.

Ornithopter

Ornithopter

2004-09-12 21:29

reporter   ~0007533

Just a quick addition.
If you use the above solution, add a defualt
value such as $p_body_options='' for each function
otherwise you will get warnings when other pages
attempt to use this method without passing it a
parameter.

Cheers.

Matt_wc

Matt_wc

2004-09-12 21:32

reporter   ~0007534

We have had issues with this as well. Would really like to see this addressed.

TomR

TomR

2004-09-13 15:22

reporter   ~0007553

Duplicate of 0003729?

I also consider this a (big) issue. I would save al lot of time not to re-enter everthing.

jjester

jjester

2004-09-23 09:56

reporter   ~0007711

This issue affecs us as well. While i use mozilla and generally can recover my form data on submission, others are IE crippled and run into this issue frequently.

Ornithopter

Ornithopter

2004-09-23 11:44

reporter   ~0007716

Just a note to anyone who has/will be implementing
my work around mentioned above:

Make sure you add a clear button to the bug_report_page.php.
The way the script works, it keeps the form info around even
after a bug has been successfully submitted. Now this can
be good if someone is entering a few related bugs, then they
only have to change the subject and description. However if
the reporter returns a few weeks later to find their old bug
info pop up and they have to clear the form by hand, this gets
annoying.

A sample solution:
<!-- Submit Button -->
<tr>
<td class="left">
<span class="required"> * <?php echo lang_get( 'required' ) ?></span>
</td>
<td>
<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td class="left">
<input tabindex="12" type="reset" class="button" value="Clear Report" />
</td>
<td class="right">
<input tabindex="13" type="submit" class="button"
value="<?php echo lang_get( 'submit_report_button' ) ?>" />
</td>
</tr>
</table>
</td>
</tr>

packeteer

packeteer

2004-10-19 23:20

reporter   ~0008110

Last edited: 2004-10-20 02:46

duplicate of 0003729

Confirm bug exists with WinXP IE 6
bug occurs with report issue page and not update issue page

edited on: 10-20-04 02:46