From d017968150e1a9013066091913a51909204bf2bd Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 22 Apr 2014 12:02:14 -0400 Subject: [PATCH] browser staff : print config UI cont. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/services/printstore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/printstore.js b/Open-ILS/web/js/ui/default/staff/services/printstore.js index c9f7142c87..64c877998d 100644 --- a/Open-ILS/web/js/ui/default/staff/services/printstore.js +++ b/Open-ILS/web/js/ui/default/staff/services/printstore.js @@ -253,11 +253,13 @@ angular.module('egCoreMod') return service.getPrintConfig() // dispatch the print configuration request - .then(function() { + .then(function(config) { + if (!config[context]) config[context] = {}; + config[context].printer = printer; return service.dispatchRequest({ key : 'no-op', action : 'print-config', - printer : printer + config : config[context] }) }) -- 2.11.0