fixed Tag::mass_edit

This commit is contained in:
Parziphal 2013-11-05 11:01:32 -05:00
parent a6141ad7a7
commit 1ae6c3183b

View File

@ -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));
}