Project

General

Profile

Defect #19606 » issue_tracker_estimated_time.diff

issue.rb patch - Stephane Evr, 2015-04-14 11:34

View differences:

app/models/issue.rb (working copy)
300 300
      end
301 301
      @custom_field_values = nil
302 302
      @workflow_rule_by_attribute = nil
303
	  if tracker.disabled_core_fields.include?("estimated_hours")
304
		self.estimated_hours = 0
305
		recalculate_attributes_for(self.id)
306
	  end
303 307
    end
304 308
    association(:tracker).writer(tracker)
305 309
    self.status ||= default_status
(1-1/2)