fixes #1619
This commit is contained in:
@@ -145,8 +145,7 @@ class TagAlias < ActiveRecord::Base
|
|||||||
if antecedent_wiki.present? && WikiPage.titled(consequent_name).blank?
|
if antecedent_wiki.present? && WikiPage.titled(consequent_name).blank?
|
||||||
CurrentUser.scoped(creator, creator_ip_addr) do
|
CurrentUser.scoped(creator, creator_ip_addr) do
|
||||||
antecedent_wiki.update_attributes(
|
antecedent_wiki.update_attributes(
|
||||||
:title => consequent_name,
|
:title => consequent_name
|
||||||
:body => "[i]This page was automatically renamed from [[#{antecedent_name}]] by a tag alias.[/i]\n\n#{antecedent_wiki.body}"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ create implication aaa -> bbb
|
|||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="batch_rename_aliased_pages">
|
<label for="batch_rename_aliased_pages">
|
||||||
<%= check_box "batch", "rename_aliased_pages" %>
|
<%= check_box "batch", "rename_aliased_pages" %>
|
||||||
Automatically rename all wiki pages and artists for aliases in this batch
|
Rename aliased wiki pages and artists
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user