Skip to content

Commit

Permalink
Merge pull request thinkingreed-inc#1147 from Ryon1211/feature/1143_s…
Browse files Browse the repository at this point in the history
…croll-picklist-values

設定画面のみ選択肢の追加不可設定を解除
  • Loading branch information
Ryon1211 authored Nov 18, 2024
2 parents a99ec5b + 287e37a commit 43b1efc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion layouts/v7/modules/Vtiger/resources/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ var vtUtils = {
params.closeOnSelect = false;
}

if(selectElement.is('input') && !params.hasOwnProperty('createSearchChoice')) {
// 複数選択肢項目で自由に選択肢を追加できないようにする(設定は除く)
if(selectElement.is('input')
&& !params.hasOwnProperty('createSearchChoice')
&& app.getParentModuleName() !== 'Settings') {
params.createSearchChoice = null;
}

Expand Down
5 changes: 4 additions & 1 deletion resources/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ var app = {
params.closeOnSelect = false;
}

if(selectElement.is('input') && !params.hasOwnProperty('createSearchChoice')) {
// 複数選択肢項目で自由に選択肢を追加できないようにする(設定は除く)
if(selectElement.is('input')
&& !params.hasOwnProperty('createSearchChoice')
&& app.getParentModuleName() !== 'Settings') {
params.createSearchChoice = null;
}

Expand Down

0 comments on commit 43b1efc

Please sign in to comment.