GEM: 参照プロパティの自動補完が一部の表示形式・多重度で正しく反映されない - #2147
Merged
yuichi-github merged 2 commits intoAug 14, 2026
Merged
Conversation
詳細画面の ReferencePropertyEditor 自動補完(ReferencePropertyAutocompletion.jsp)の不具合を修正。 - Link/Tree形式(多重度1): 連続補完で古い選択値が残り重複追加される不具合を修正。 削除はindexベースID・追加はoid_versionベースIDでID体系が不一致だったため、 位置ごとの削除をやめ、検索画面と同じ「全削除→再構築」に統一。 - Unique形式(多重度1): nullが返ると入力欄・ボタンが消えて入力できなくなる不具合を修正。 入力行は削除せず値のみクリアして入力可能状態を維持。 - Unique形式(多重度-1/無制限): 値が追加されない不具合を修正。 multiplicity+1が0になりcanAddItemが常にfalseとなっていたため、 -1は-1のまま渡すよう補正(編集画面JSPと同じ扱い)。 - 「対象データなし」時の挙動を他表示形式の多数派に統一(null→クリア/空配列→維持)。
Contributor
There was a problem hiding this comment.
Pull request overview
詳細画面の ReferencePropertyEditor 自動補完(ReferencePropertyAutocompletion.jsp)において、表示形式(LINK/TREE/UNIQUE)と多重度(1 / -1)によって補完結果が正しく反映されないケースを修正し、削除・再構築や「対象データなし」時の挙動を整理するPRです。
Changes:
- LINK/TREE(多重度1)で、連続補完時に古い選択値が残って重複追加される問題を「全削除→再構築」に統一して解消
- UNIQUE(多重度1)で、WebAPIが
nullを返した場合でも入力行を残し、値だけクリアして入力可能状態を維持 - UNIQUE(多重度-1)で、
multiplicity + 1が原因で追加不可になる不具合を、無制限時は-1のまま扱うよう補正
yuichi-github
requested changes
Jul 9, 2026
h-terazaki
approved these changes
Aug 13, 2026
yuichi-github
approved these changes
Aug 14, 2026
yuichi-github
deleted the
feature/1111-gem-autocompletion-referenceeditor-fix
branch
August 14, 2026 01:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
対応内容
詳細画面の ReferencePropertyEditor 自動補完(ReferencePropertyAutocompletion.jsp)の不具合を修正。
closes GEM: 自動補完機能 ReferencePropertyEditorでEntity返却時に補完されないパターンがある #1111
動作確認・スクリーンショット(任意)
自動補完機能を設定した詳細画面で動作確認
LINK形式、TREE形式、Unique形式の多重度1と多重度-1の項目で自動補完時の動作を確認
複数の参照先に切り替えて問題ないことを確認
レビュー観点・補足情報(任意)