Project

General

Profile

Defect #33610 » fix-33610.patch

Katsuya HIDAKA, 2026-01-29 05:31

View differences:

app/models/issue.rb
# Make sure updated_on is updated when adding a note and set updated_on now
# so we can set closed_on with the same value on closing
def force_updated_on_change
if @current_journal || changed?
if changed? || (@current_journal && !@current_journal.notes_and_details_empty?)
self.updated_on = current_time_from_proper_timezone
if new_record?
self.created_on = updated_on
app/models/journal.rb
def save(*args)
journalize_changes
# Do not save an empty journal
(details.empty? && notes.blank?) ? false : super()
notes_and_details_empty? ? false : super()
end
def notes_and_details_empty?
notes.blank? && details.empty?
end
def journalized
(2-2/2)