[open-ils-commits] r17896 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 22 16:02:00 EDT 2010
Author: phasefx
Date: 2010-09-22 16:01:55 -0400 (Wed, 22 Sep 2010)
New Revision: 17896
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/print.js
Log:
fix from tsbere to handle case where the print strategy is set to custom/external but the actual command is missing (perhaps due to xulrunner upgrades?)
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/print.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/print.js 2010-09-22 19:38:45 UTC (rev 17895)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/print.js 2010-09-22 20:01:55 UTC (rev 17896)
@@ -16,6 +16,10 @@
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
var key = 'oils.printer.external.cmd.' + this.context;
var has_key = prefs.prefHasUserValue(key);
+ if(!has_key && this.context != 'default') {
+ key = 'oils.printer.external.cmd.default';
+ has_key = prefs.prefHasUserValue(key);
+ }
this.oils_printer_external_cmd = has_key ? prefs.getCharPref(key) : '';
return this;
More information about the open-ils-commits
mailing list