From e45a6279895e9ffad49199296d4ab1e639bce81b Mon Sep 17 00:00:00 2001 From: Rod Roark Date: Tue, 10 Nov 2015 07:24:16 -0800 Subject: [PATCH] Fixed print button in payment receipt when invoked as a frame. --- interface/patient_file/front_payment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/patient_file/front_payment.php b/interface/patient_file/front_payment.php index cdfbd26ac..78333c2e2 100644 --- a/interface/patient_file/front_payment.php +++ b/interface/patient_file/front_payment.php @@ -371,7 +371,8 @@ if ($_POST['form_save'] || $_REQUEST['receipt']) { $(document).ready(function() { - opener.top.printLogSetup(document.getElementById('printbutton')); + var win = top.printLogSetup ? top : opener.top; + win.printLogSetup(document.getElementById('printbutton')); }); // This is action to take before printing and is called from restoreSession.php. -- 2.11.4.GIT