プロジェクト

全般

プロフィール

Vote #78765

未完了

udpate_all

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
0
issue_org_id:
26727
author_id:
306584
assigned_to_id:
0
comments:
2
status_id:
10
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Needs feedback]

説明


/app/controllers/wiki_controller.rb
272        @page.children.each do |child|
273          child.update_attribute(:parent, reassign_to)
274        end

could use


@page.children.update_all(parent: reassign_to)

journals

Please post by patch.
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> Please post by patch.

Please post by attachment patch file.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0