From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 20 May 2010 05:21:39 +0000 (+0000)
Subject: Don't assume an explicit print strategy has been set here
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=222a2589e91a55337c66707bc169fff82e5b3c01;p=evergreen%2Fpines.git

Don't assume an explicit print strategy has been set here

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16462 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js
index aa16e6eaf7..ab877db56d 100644
--- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js
+++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js
@@ -55,7 +55,7 @@ util.browser.prototype = {
                                         print_params.msg = obj.html_source;
                                     }
                                     JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.stash_retrieve();
-                                    if (data.print_strategy == 'webBrowserPrint') {
+                                    if (data.print_strategy == 'webBrowserPrint' || !data.print_strategy) {
                                         // Override the print strategy temporarily in this context
                                         print_params.print_strategy = 'window.print';
                                     }