diff --git a/public/js/operations.js b/public/js/operations.js index 1ae4364..ec16f25 100644 --- a/public/js/operations.js +++ b/public/js/operations.js @@ -439,15 +439,7 @@ async function promptForRequiredFields(requiredFields, optionalFields) { title: 'Значение', field: 'field_value', headerSort: false, - editor: function(cell) { - const meta = cell.getRow().getData()._field_meta; - - if (meta.is_fk && fkOptions[meta.name]?.length > 0) { - return 'list'; - } - - return 'input'; - }, + editor: 'list', editorParams: function(cell) { const meta = cell.getRow().getData()._field_meta; const isRequired = cell.getRow().getData()._required; @@ -724,13 +716,7 @@ async function showEditModal(selectedRows) { if (!isSingleRow && !data.update) return false; return true; }, - editor: function(cell) { - const meta = cell.getRow().getData()._field_meta; - if (meta.is_fk && fkOptions[meta.name]?.length > 0) { - return 'list'; - } - return 'input'; - }, + editor: 'list', editorParams: function(cell) { const meta = cell.getRow().getData()._field_meta;