View Issue Details

IDProjectCategoryView StatusLast Update
0009813mantisbtbugtrackerpublic2014-01-21 16:48
Reporterjreese Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Summary0009813: Redesign forms in Mantis to not need the Back Button for mistakes.
Description

When an error occurs, rather than requiring the user to press the back button, Mantis should automatically return them to the appropriate form page with fields already filled in as they were by the user, and with any mistakes marked with appropriate error messages.

TagsNo tags attached.
Attached Files
THECODE.txt (505 bytes)   
---------------------------------------------------------
ERROR_API.PHP IN MANTIS v1.1.4
---------------------------------------------------------

OLD LINE 134: PRINT lang_get( 'error_no_proceed' ); 

NEW LINE 134: PRINT lang_get( 'error_no_proceed' ); echo '<b><br><br><a href="#" onClick="history.go(-1)">CLICK HERE TO GO BACK [INTERNET EXPLORER ONLY]</a><br></b>';

DIFF(+): echo '<b><br><br><a href="#" onClick="history.go(-1)">CLICK HERE TO GO BACK [INTERNET EXPLORER ONLY]</a><br></b>';

THECODE.txt (505 bytes)   

Relationships

related to 0009323 closedjreese Browser caching broken since 1.1.2 
related to 0009754 closedjreese Failed to report issue (APPLICATION ERROR #2800) 
related to 0014804 closeddregad Text Field Input Not Saved If Error Is Encountered 
related to 0016570 closedgrangeway Page content in 'Report Issue' is forgotten when user clicks [Back] button in browser 

Activities

tmatijas

tmatijas

2008-11-15 17:11

reporter   ~0019906

OK - Not sure what effect this will have on browser cache issue BUT this go back a page and WILL retain all settings when you get a submit error.

I am using version 1.1.4 and by the way - i think i have a good work around for the browser cache issue and will post it later as soon as I am 100% positive it eliminates the error.. anyway, in file "error_api.php", you need only add an echo command with a little vb script to go back with retained settings..

  • On line 134 you will see the following:
    PRINT lang_get( 'error_no_proceed' );

  • Simple replace the line with the following:
    PRINT lang_get( 'error_no_proceed' ); echo '<b><br><br>#<br></b>';

I tested the in IE but not firefox.

Anyway, if you have something else, please feel gree to share. You now know the placeholder in any case. Im sure any only javascript will work as well. Well maybe with IE7 which seems to have new javascript limitations.

tmatijas

tmatijas

2008-11-15 17:18

reporter   ~0019907

Man - I hate when mantis blocks my code out - this is the second time... IT HATES HYPERTEXT LINKS! ... Just see my attached text file.

DaVinci

DaVinci

2008-11-25 08:28

reporter   ~0020028

what thaaaa...
i cant open the attachement

grangeway

grangeway

2008-12-02 15:02

reporter   ~0020197

With the latest round of fixes to the caching headers, can this issue not be resolved?

Paul