Bug 13994: Add a back link to error message in Reports

To reproduce:
- Go to Home > Reports
- Create from SQL
- Do something that results in an error message, e.g. by entering an UPDATE statement

Result: You get an error message with title "The follwing error was encountered"
But there is now link to go directly back to fix it.

To test:
- Apply patch
- Repeat steps above
- Verify that a link appears (and works): "Back to previous page"

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Marc Véron 2015-04-14 11:50:14 +02:00 committed by Tomas Cohen Arazi
parent 54f7ffb313
commit a2775193e5

View file

@ -1004,6 +1004,9 @@ Sub report:<select name="subreport">
[% ELSIF ( error.cache_expiry ) %]Please select a cache expiry less than 30 days.
[% ELSE %]
[% END %]
<div id="onerror_actions">
<a href="javascript:window.history.back()" class="button">Back to previous page</a>
</div>
[% END %]
</div>
<fieldset class="action"><input type="hidden" name="phase" value="Use saved" />