「フィールド バリューをリセットします」ダイアログ ボックスでセクションを折りたたむ際に、「Method "ToggleSection" not found」エラーが発生する


説明

コンテンツ エディターの 「フィールド バリューをリセットします」ダイアログ ボックスで、セクションを折りたたむか展開した場合に以下のエラーが発生し、失敗する可能性があります。

その際、ポップアップ メッセージ ボックスに以下のエラーが表示されます。

また、ログに以下のエラーが記録されます。

[Exception: Method "ToggleSection" not found in Sitecore.Shell.Applications.ContentManager.Dialogs.ResetFields.ResetFieldsForm. (method: Sitecore.Web.UI.Sheer.ClientPage.Dispatch(String command)).]
   Sitecore.Diagnostics.Error.Raise(String error, String method) +133
   Sitecore.Shell.Framework.Commands.CommandManager.GetMethodCommand(String command) +1122
   Sitecore.Web.UI.Sheer.ClientPage.Dispatch(String command) +35
   Sitecore.Web.UI.Sheer.ClientPage.RaiseEvent() +124
   Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +801
   System.Web.UI.Control.PreRenderRecursiveInternal() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7479

註: この問題は、ContentEditor.RenderCollapsedSections設定が構成または個別のユーザー設定(Control Panel/Application Options/Content Editorパス配下のPrefetch collapsed sections)によって上書きされ、falseに設定された場合にのみ発生します。

解決策

Sitecore XP 9.0.2の場合、本事象を解決するには、次のページにある影響を受ける製品バージョンと互換性のあるパッチをダウンロードしてインストールしてください。https://github.com/SitecoreSupport/Sitecore.Support.95996/releases

または代替案として、以下の方法で折りたたまれたセクションのプリフェッチ(先読み)を有効化することを検討してください。

註: 折りたたまれたセクションのプリフェッチを有効化すると、コンテンツ エディターでのアイテム間のナビゲーションが遅くなる可能性があります。