LP#1646166 Hatch templated print content type repair
authorBill Erickson <berickxx@gmail.com>
Fri, 10 Feb 2017 22:06:57 +0000 (17:06 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 16 Feb 2017 20:21:36 +0000 (15:21 -0500)
Fixes a thinko in the Hatch code that set a bad default content type for
template-driven HTML printing.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/print.js

index ef01410..02424a9 100644 (file)
@@ -32,7 +32,7 @@ function($q , $window , $timeout , $http , egHatch , egAuth , egIDL , egOrg , eg
             return service.getPrintTemplate(args.template)
             .then(function(content) {
                 args.content = content;
-                if (!args.content_type) args.content_type = 'html';
+                if (!args.content_type) args.content_type = 'text/html';
                 service.getPrintTemplateContext(args.template)
                 .then(function(context) {
                     args.context = context;