[open-ils-commits] r20216 - trunk/Open-ILS/xul/staff_client/chrome/content/util (dbwells)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 19 13:55:51 EDT 2011
Author: dbwells
Date: 2011-04-19 13:55:47 -0400 (Tue, 19 Apr 2011)
New Revision: 20216
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js
Log:
Fix dump-style printing by ensuring 'params' is defined before accessing it
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js 2011-04-19 16:36:14 UTC (rev 20215)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js 2011-04-19 17:55:47 UTC (rev 20216)
@@ -1276,8 +1276,8 @@
'dump_csv_to_printer' : function(params) {
var obj = this;
+ if (typeof params == 'undefined') params = {};
JSAN.use('util.print'); var print = new util.print(params.printer_context || obj.printer_context);
- if (typeof params == 'undefined') params = {};
if (params.no_full_retrieve) {
print.simple( obj.dump_csv( params ), {'content_type':'text/plain'} );
} else {
@@ -1291,8 +1291,8 @@
'dump_extended_format_to_printer' : function(params) {
var obj = this;
+ if (typeof params == 'undefined') params = {};
JSAN.use('util.print'); var print = new util.print(params.printer_context || obj.printer_context);
- if (typeof params == 'undefined') params = {};
if (params.no_full_retrieve) {
print.simple( obj.dump_extended_format( params ), {'content_type':'text/plain'} );
} else {
More information about the open-ils-commits
mailing list