# Redirection issue once transaction is deleted

**URL:** <https://community.open-emr.org/t/redirection-issue-once-transaction-is-deleted/9128>\
**Category:** OpenEMR Development\
**Created:** [October 11, 2017, 4:18am UTC](https://community.open-emr.org/t/redirection-issue-once-transaction-is-deleted/9128 "2017-10-11T04:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![visolveemr](https://community.open-emr.org/user_avatar/community.open-emr.org/visolveemr/32/10974_2.png) [@visolveemr](https://community.open-emr.org/u/visolveemr)\
**Post date:** [October 11, 2017, 4:18am UTC](https://community.open-emr.org/t/redirection-issue-once-transaction-is-deleted/9128/1 "2017-10-11T04:18:56Z")

</div>

@brady.miller,

On examining the transactions, we came across redirection issues and the steps are provided below.

1. Select a particular patient. Click on Transactions.

2. Click Add. Choose the transaction type physician request.

3. Enter Details and click on save.

4. On deleting that particular transaction, it returns the delete alert. On clicking ok, it returns the SQL query. Instead of this we can show the button named as ok or back along with SQL query to get back to the main screen. If this can be done, we will make required changes and commit the code.

Attached the screenshot for your reference.

 ![transaction](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/4/45c02258b932d6ad4195f31d63f79e4520489c66.png)

Thanks,  
[ViSolve](http://www.visolve.com/hc/)

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [October 11, 2017, 9:08am UTC](https://community.open-emr.org/t/redirection-issue-once-transaction-is-deleted/9128/2 "2017-10-11T09:08:29Z")

</div>

Hi @visolveemr ,

I am guessing this is an issue with all Delete items (since they all go through the same script). Agree with having an Ok or Back here.

thanks,  
-brady

---

<div class="post-metadata">

**Author:** ![visolveemr](https://community.open-emr.org/user_avatar/community.open-emr.org/visolveemr/32/10974_2.png) [@visolveemr](https://community.open-emr.org/u/visolveemr)\
**Post date:** [October 12, 2017, 7:07am UTC](https://community.open-emr.org/t/redirection-issue-once-transaction-is-deleted/9128/3 "2017-10-12T07:07:13Z")

</div>

@brady.miller  
"Redirection issue once transaction is deleted "- has been fixed .  
Solution - We have provided Back button after delete, to getback to the main screen.  
The following is the Commit link - [back to main screen after delete action · visolve-openemr/Openemr\_features\_enhancements@d7b770c · GitHub](https://github.com/visolve-openemr/Openemr_features_enhancements/commit/d7b770cde0d9e12831e572ddd8a27a86821a3906)

and the pull request is :

> <https://github.com/openemr/openemr/pull/1126>

Thanks,  
[ViSolve](http://www.visolve.com/hc)
