Skip to content

GEM: Reference型Propertyを表示タイプ:UNIQUEで編集する際のエラーメッセージ改善 対応 - #2188

Merged
xlei-duoce merged 2 commits into
masterfrom
feature/gem-2181-reference-unique-error-message
Aug 5, 2026
Merged

GEM: Reference型Propertyを表示タイプ:UNIQUEで編集する際のエラーメッセージ改善 対応#2188
xlei-duoce merged 2 commits into
masterfrom
feature/gem-2181-reference-unique-error-message

Conversation

@xlei-duoce

@xlei-duoce xlei-duoce commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

対応内容

closes #2181

動作確認・スクリーンショット(任意)

  • 編集画面でEditorの「選択」ボタンを開き、候補を何も選択せずに「確定」ボタンを押した際に表示されるエラーメッセージは 対象データが未選択です。 と表示されるようになりました。あわせて、多言語対応テストも実施しました。

レビュー観点・補足情報(任意)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Issue #2181(ReferencePropertyEditor を表示タイプ:UNIQUEで編集時、未選択確定のエラーメッセージが「重複のデータ。」になってしまう)に対して、未選択時に適切なメッセージを表示できるようにするPRです。GEMの参照選択(UNIQUE)処理に未選択判定を追加し、各ロケールに新規メッセージキーを追加しています。

Changes:

  • UNIQUE参照選択で、確定時に選択値が未設定の場合は重複チェック前に専用メッセージを表示して終了
  • scriptContext.gem.locale.reference.notSelectedData を各ロケール(ja/en/zh-CN/zh-TW/th)に追加
  • 既存の重複エラーメッセージ(duplicateData)は重複時のみ引き続き使用

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/i18n/gem-locale-zh-TW.js 未選択時メッセージ(繁体字)を追加
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/i18n/gem-locale-zh-CN.js 未選択時メッセージ(簡体字)を追加
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/i18n/gem-locale-th.js 未選択時メッセージ(タイ語)を追加
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/i18n/gem-locale-ja.js 未選択時メッセージ(日本語)を追加
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/i18n/gem-locale-en.js 未選択時メッセージ(英語)を追加
iplass-gem/src/main/resources/META-INF/resources/scripts/gem/common.js UNIQUE参照選択の未選択判定と新メッセージ表示を追加

Comment thread iplass-gem/src/main/resources/META-INF/resources/scripts/gem/common.js Outdated
@yuichi-github
yuichi-github removed the request for review from hkondoh August 4, 2026 06:01
@xlei-duoce
xlei-duoce merged commit a0783ea into master Aug 5, 2026
3 checks passed
@xlei-duoce
xlei-duoce deleted the feature/gem-2181-reference-unique-error-message branch August 5, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GEM: Reference型Propertyを表示タイプ:UNIQUEで編集する際のエラーメッセージ改善

4 participants