fixed Tag::mass_edit
This commit is contained in:
parent
a6141ad7a7
commit
1ae6c3183b
@ -573,7 +573,7 @@ class Tag extends Rails\ActiveRecord\Base
|
||||
foreach (Post::find_by_tags($start_tags) as $p) {
|
||||
$start = TagAlias::to_aliased(Tag::scan_tags($start_tags));
|
||||
$result = TagAlias::to_aliased(Tag::scan_tags($result_tags));
|
||||
$tags = array_merge(array_diff(array_keys($p->tags()), $start), $result);
|
||||
$tags = array_merge(array_diff($p->tags(), $start), $result);
|
||||
$tags = implode(' ', $tags);
|
||||
$p->updateAttributes(array('updater_user_id' => $updater_id, 'updater_ip_addr' => $updater_ip_addr, 'tags' => $tags));
|
||||
}
|
||||
|
Reference in New Issue
Block a user