1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 09:03:25 +00:00

Optimize Issue#recalculate_attributes_for to avoid unnecessary saves and cascading callbacks (#43607).

Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24223 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2025-12-20 02:04:26 +00:00
parent af3a49b59d
commit 812399e99a

View File

@ -1904,7 +1904,7 @@ class Issue < ApplicationRecord
end
# ancestors will be recursively updated
p.save(:validate => false)
p.save(:validate => false) if p.has_changes_to_save?
end
end