diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-08 20:47:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-08 20:47:52 +0000 |
commit | 0fe389b8417fe9ad17682a39cdd7c183005f5a5e (patch) | |
tree | 23018452d7bf5dbaa916b5d945200fe04ff7d73f /app/models/version.rb | |
parent | 8f85ba79bc89af309a5441fb409075b7fb3b989e (diff) | |
download | redmine-0fe389b8417fe9ad17682a39cdd7c183005f5a5e.tar.gz redmine-0fe389b8417fe9ad17682a39cdd7c183005f5a5e.zip |
Optimize updates of issue's shared versions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3137 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/version.rb')
-rw-r--r-- | app/models/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index 4ed6a4e9e..bc0e17e22 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -166,7 +166,7 @@ private if VERSION_SHARINGS.index(sharing_was).nil? || VERSION_SHARINGS.index(sharing).nil? || VERSION_SHARINGS.index(sharing_was) > VERSION_SHARINGS.index(sharing) - Issue.update_fixed_versions_from_sharing_change ["fixed_version_id = ? AND #{Issue.table_name}.project_id <> ?", id, project_id] + Issue.update_versions_from_sharing_change self end end end |