search for: service_desk_status_id

Displaying 5 results from an estimated 5 matches for "service_desk_status_id".

2008 Sep 25
1
question about exception
...d_by_id) end Now in the ServiceDeskTicket model def self.close_ticket(sd_id,created_by,modified_by) begin ActiveRecord::Base.transaction do sd_ticket=self.find(sd_id) sd_ticket.service_desk_status_histories.add_status_histories_on_convert_to_incident(sd_ticket.id,sd_ticket.service_desk_status_id,created_by,modified_by) sd_ticket.update_attributes!(:service_desk_status_id => 7 ) code continues end rescue Exception => e: puts ''error is ''+e.to_s end end Now my problem is this ServiceDeskTicket has a validation validates_...
2008 May 13
4
calling another rjs file in an if condition
...:failure of submit_to_remote else @sd_ticket = ServiceDeskTicket.find(params[:sd_id]) ActiveRecord::Base.transaction do @sd_status_history = ServiceDeskStatusHistory.new @sd_status_history.service_desk_ticket_id = @sd_ticket.id @sd_status_history.service_desk_status_id = @sd_ticket.service_desk_status_id @sd_status_history.save @sd_ticket.update_attribute("service_desk_status_id",params[:status_id]) end #end of transaction if params[:page]==''search_sd_ticket'' render :update do |page|...
2008 May 19
0
changed to will_paginate
...d_ticket_count_result = ServiceDeskTicket.find_where(:all,:select=>''count(*) as count1'' ) do |sd| sd.number.downcase =~ "%"+@sd_ticket_number.downcase+"%" if !@sd_ticket_number.nil? sd.service_desk_status_id== @sd_ticket_status_id sd.service_desk_priority_id== @sd_ticket_priority_id sd.primary_assignee== @sd_ticket_primary_assignee sd.created_on <=> (@sd_ticket_start_date..@sd_ticket_end...
2008 Mar 06
2
GateKeeper, Model Level Permissions Management
I''m pleased to announce the official release of "GateKeeper". GateKeeper is a Rails plugin that provides easy to use methods to declare access permissions to instances of ActiveRecord classes at the model level. Permissions may be based on either a user''s roles (such as Admin, Moderator, etc) or on associations with other models. In most simple and straight forward
2008 Jun 16
2
call_backs Is it?
Hi I have the models 1.ServiceDeskTicket with fields id --- number --- service_desk_status_id -- created_on -- updated_on etc 2.ServiceDeskActivity with fields id -- service_desk_ticket_id -- description -- created_on -- updated_on 3.ServiceDeskAttachment id -- service_desk_ticket_id -- attachment -- created_on -- updated_on Relations as ServiceDeskticket has_many servic...