Reset escalation if no sla is set.

This commit is contained in:
Martin Edenhofer 2013-03-07 09:01:46 +01:00
parent 4bf0101097
commit f86fa3968c

View file

@ -457,7 +457,14 @@ class Ticket < ApplicationModel
end end
} }
return if !sla_selected # reset escalation if no sla is set
if !sla_selected
self.escalation_time = nil
# self.first_response_escal_date = nil
# self.close_time_escal_date = nil
self.save
return true
end
# get calendar settings # get calendar settings
BusinessTime::Config.beginning_of_workday = sla_selected.data['beginning_of_workday'] BusinessTime::Config.beginning_of_workday = sla_selected.data['beginning_of_workday']