Browse Source

Tixed typo in state type name.

Martin Edenhofer 12 years ago
parent
commit
fb214adc6f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/ticket/observer/user_ticket_counter.rb

+ 1 - 1
app/models/ticket/observer/user_ticket_counter.rb

@@ -14,7 +14,7 @@ class Ticket::Observer::UserTicketCounter < ActiveRecord::Observer
   def user_ticket_counter_update(record)
     return if !record.customer_id
 
-    ticket_state_list_open   = Ticket::State.where( :ticket_state_type_id => Ticket::StateType.where(:name => ['new','open', 'pending remidner', 'pending action']) )
+    ticket_state_list_open   = Ticket::State.where( :ticket_state_type_id => Ticket::StateType.where(:name => ['new','open', 'pending reminder', 'pending action']) )
     ticket_state_list_closed = Ticket::State.where( :ticket_state_type_id => Ticket::StateType.where(:name => ['closed'] ) )
 
     tickets_open   = Ticket.where( :customer_id => record.customer_id, :ticket_state_id => ticket_state_list_open ).count()