legacy-knowledge-base
公開されました Jun. 30, 2025

オブジェクト定義のパブリッシュ後に、フィールドの必須ステータスを調整できない。

written-by

Brian Suh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • この文書では、オブジェクト定義のパブリッシュ後にフィールドの「必須」ステータスを調整できない場合の動作について説明します。

環境

  • Liferay DXP 7.4+
  • ライフェライ 2023.Q3+

解像度

  • これは意図された動作である。 オブジェクト定義を公開した後、必須でないフィールドに空の項目を保存することが可能である。 したがって、空のエントリーが保存された後にフィールドを必須にすると、矛盾したシナリオになります。
  • LXC 環境の場合、または COMMERCE-8087 の Feature Flag が有効になっている場合(つまり、portal-ext.properties を構成して feature.flag.COMMERCE-8087=trueを含める)、Object エントリをエクスポートし、必要なフィールドを変更して Object 定義を再作成し、 Batch Client Extensions の記事で説明されている Import/Export Center を使用して再インポートすることで、この動作を回避できます。 フィーチャー・フラッグは実験的および/またはベータ版の機能であるため、変更される可能性があることにご留意ください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base