Ensure that the user should be allowed to set the schema of an extension while creating it. Fixes #6963

This commit is contained in:
Akshay Joshi 2021-11-29 15:27:44 +05:30
parent 61b440261f
commit 2c02e6fc23
2 changed files with 8 additions and 7 deletions

View File

@ -22,7 +22,8 @@ Bug fixes
*********
| `Issue #6906 <https://redmine.postgresql.org/issues/6906>`_ - Fixed an issue where referenced table drop-down should be disabled in foreign key -> columns after one row is added.
| `Issue #6964 <https://redmine.postgresql.org/issues/6964>`_ - Fixed an issue where properties of the database should not be visible after removing the database.
| `Issue #6955 <https://redmine.postgresql.org/issues/6955>`_ - Ensure that sort order should be maintained when renaming a server group.
| `Issue #6963 <https://redmine.postgresql.org/issues/6963>`_ - Ensure that the user should be allowed to set the schema of an extension while creating it.
| `Issue #6986 <https://redmine.postgresql.org/issues/6986>`_ - Fixed an issue where the user can't debug function with timestamp parameter.
| `Issue #6989 <https://redmine.postgresql.org/issues/6989>`_ - Fixed an issue where the Change Password menu option is missing for internal authentication source when more than one authentication source is defined.
| `Issue #7005 <https://redmine.postgresql.org/issues/7005>`_ - Fixed an issue where On-demand rows throw an error when any row cell is edited and saved it then scroll to get more rows.

View File

@ -93,14 +93,14 @@ export default class ExtensionsSchema extends BaseUISchema {
id: 'schema', label: gettext('Schema'), type: 'select',
mode: ['properties', 'create', 'edit'], group: gettext('Definition'),
first_empty: true, deps: ['name'],
controlProps: { allowClear: false }, editable: false,
controlProps: { allowClear: true }, editable: false,
options: this.schemaList,
disabled: function (state) {
/*
* enable or disable schema field if model's relocatable
* attribute is True or False
*/
return (!state.relocatable);
if (!obj.isNew(state) && !state.relocatable) {
return true;
}
return false;
},
},
{