fixes #1897: the "version" field will be updated even when versions are merged
This commit is contained in:
@@ -145,7 +145,8 @@ class Artist < ActiveRecord::Base
|
||||
:is_active => is_active,
|
||||
:is_banned => is_banned,
|
||||
:other_names => other_names,
|
||||
:group_name => group_name
|
||||
:group_name => group_name,
|
||||
:version => versions.where("id <> ?", prev.id).maximum(:version) || 1
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ class Note < ActiveRecord::Base
|
||||
:height => height,
|
||||
:is_active => is_active,
|
||||
:body => body,
|
||||
:version => version
|
||||
:version => versions.where("id <> ?", prev.id).maximum(:version) || 1
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user