Fix error when trying to edit an artist twice

fixes #2483
This commit is contained in:
Toks
2015-08-09 10:16:37 -04:00
parent 23dfc455d5
commit 30c4cb1e5a

View File

@@ -145,8 +145,7 @@ class Artist < ActiveRecord::Base
:is_active => is_active,
:is_banned => is_banned,
:other_names => other_names,
:group_name => group_name,
:version => versions.where("id <> ?", prev.id).maximum(:version) || 1
:group_name => group_name
)
end