Permalink
Browse files

Fix issue with toolbar breaking on non-order pages

  • Loading branch information...
1 parent b51a738 commit b6d7ba6de2964fdfa91453a79303673d6d0d0b90 Ted Lilley committed Jan 30, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/spree/admin/orders/_print_buttons.html.erb
  2. +1 −1 spree-print-invoice.gemspec
@@ -1,4 +1,4 @@
-<% if @order.completed_at? %>
+<% if @order and @order.completed_at? %>
<% buttons = Spree::PrintInvoice::Config[:print_buttons]
buttons = buttons.split(",").collect{|b| b.strip } %>
<% buttons.each do |button| %>
@@ -14,5 +14,5 @@ Gem::Specification.new do |s|
s.authors = 'Spree Community'
s.add_dependency('prawn', '0.8.4')
- s.add_dependency('spree_core', '~> 1.3.1')
+ s.add_dependency('spree_core', '~> 1.3.0')
end

0 comments on commit b6d7ba6

Please sign in to comment.