Fixed validation issue in Synonyms dialog. Fixes #6767

pull/61/head
Akshay Joshi 2021-09-22 13:34:11 +05:30
parent 71d7b14320
commit f538546c4d
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ export default class SynonymSchema extends BaseUISchema {
id: 'synobjname', label: gettext('Target object'),
group: gettext('Definition'),
deps: ['targettype', 'synobjschema'],
depChange: function(state, source) {
if(source[0] == 'targettype' || source[0] == 'synobjschema') {
return { synobjname: null};
}
},
type: (state)=>{
let fetchOptionsBasis = state.targettype + state.synobjschema;
return {