lib/qooxview/helpers/open_print.rb in qooxview-1.9.10 vs lib/qooxview/helpers/open_print.rb in qooxview-1.9.11
- old
+ new
@@ -196,10 +196,11 @@
end
@printer_buttons.push print_name
end
def stat_printer(session, button)
- stat_name = "#{self.name}:#{button}:#{session.owner.login_name}"
+ user = session.owner ? session.owner.login_name : 'anonymous'
+ stat_name = "#{self.name}:#{button}:#{user}"
stat = Statics.get(stat_name)
dputs(3) { "Getting printer #{stat_name} == #{stat.data_str}" }
if stat.data_str == ''
stat.data_str = get_server_printers.first
end