Skip to content

Commit

Permalink
カスタムコンテンツで、グループフィールドを追加すると保存できない問題を改善 fix #3130
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Feb 24, 2024
1 parent 10c51be commit 0fc8685
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ $(function () {
$(`#${inUseFieldId} input[name='template[use_api]']`).attr('name', `custom_links[new-${baseId}][use_api]`);
$(`#${inUseFieldId} input[name='template[status]']`).attr('name', `custom_links[new-${baseId}][status]`);

const $nameInput = $(`#${inUseFieldId} input[name='custom_links[new-${baseId}][name]']`);
if($nameInput.val() === 'group') {
$nameInput.val('group_field');
}

registerEventToInUseField(inUseFieldId);
updateSort();
},
Expand Down
Loading

0 comments on commit 0fc8685

Please sign in to comment.