Commit 89c4c15509fb7493c9daefb32f310de9f44f09e9

Authored by Joenio Costa
1 parent aa583a31

More explanatory error message for articles with same name

(ActionItem1566)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/article.rb
... ... @@ -7,7 +7,7 @@ class Article < ActiveRecord::Base
7 7 validates_presence_of :profile_id, :name
8 8 validates_presence_of :slug, :path, :if => lambda { |article| !article.name.blank? }
9 9  
10   - validates_uniqueness_of :slug, :scope => ['profile_id', 'parent_id'], :message => N_('%{fn} (the code generated from the article name) is already being used by another article.'), :if => lambda { |article| !article.slug.blank? }
  10 + validates_uniqueness_of :slug, :scope => ['profile_id', 'parent_id'], :message => N_('<!-- %{fn} -->The title (article name) is already being used by another article, please use another title.'), :if => lambda { |article| !article.slug.blank? }
11 11  
12 12 belongs_to :last_changed_by, :class_name => 'Person', :foreign_key => 'last_changed_by_id'
13 13  
... ...