Update app/controllers/tickets_controller.rb
removed unused code, we're using a vcs ;-)
This commit is contained in:
parent
7576686083
commit
489bfd467e
1 changed files with 0 additions and 24 deletions
|
@ -133,30 +133,6 @@ class TicketsController < ApplicationController
|
||||||
:ticket_state_id => ticket_state_list_closed
|
:ticket_state_id => ticket_state_list_closed
|
||||||
).limit(15).order('created_at DESC')
|
).limit(15).order('created_at DESC')
|
||||||
|
|
||||||
# tickets = Ticket.where(:customer_id => user_id).limit(15).order('created_at DESC')
|
|
||||||
# ticket_items = []
|
|
||||||
# tickets.each do |ticket|
|
|
||||||
# style = ''
|
|
||||||
# ticket_state_type = ticket.ticket_state.ticket_state_type.name
|
|
||||||
# if ticket_state_type == 'closed' || ticket_state_type == 'merged'
|
|
||||||
# style = 'text-decoration: line-through'
|
|
||||||
# end
|
|
||||||
# item = {
|
|
||||||
# :url => '#ticket/zoom/' + ticket.id.to_s,
|
|
||||||
# :name => 'T:' + ticket.number.to_s,
|
|
||||||
# :title => ticket.title,
|
|
||||||
# :style => style
|
|
||||||
# }
|
|
||||||
# ticket_items.push item
|
|
||||||
# end
|
|
||||||
# if ticket_items[0]
|
|
||||||
# topic = {
|
|
||||||
# :title => 'Tickets',
|
|
||||||
# :items => ticket_items
|
|
||||||
# }
|
|
||||||
# user['links'].push topic
|
|
||||||
# end
|
|
||||||
|
|
||||||
# return result
|
# return result
|
||||||
render :json => {
|
render :json => {
|
||||||
:tickets => {
|
:tickets => {
|
||||||
|
|
Loading…
Reference in a new issue