mirror of https://github.com/apache/nifi.git
NIFI-301:
- Ensuring when 'no value' is selected, a value of null is used which will unset the corresponding property.
This commit is contained in:
parent
43e646e68e
commit
2fb30c774c
|
@ -51,6 +51,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
|
||||||
if (propertyDescriptor.required === false) {
|
if (propertyDescriptor.required === false) {
|
||||||
options.push({
|
options.push({
|
||||||
text: 'No value',
|
text: 'No value',
|
||||||
|
value: null,
|
||||||
optionClass: 'unset'
|
optionClass: 'unset'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -68,6 +69,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
|
||||||
if (options.length === 0) {
|
if (options.length === 0) {
|
||||||
options.push({
|
options.push({
|
||||||
text: 'No value',
|
text: 'No value',
|
||||||
|
value: null,
|
||||||
optionClass: 'unset',
|
optionClass: 'unset',
|
||||||
disabled: true
|
disabled: true
|
||||||
});
|
});
|
||||||
|
@ -134,7 +136,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
|
||||||
var propertyDescriptor = processorDetails.config.descriptors[item.property];
|
var propertyDescriptor = processorDetails.config.descriptors[item.property];
|
||||||
|
|
||||||
// select as appropriate
|
// select as appropriate
|
||||||
if (nf.Common.isDefinedAndNotNull(item.value)) {
|
if (!nf.Common.isUndefined(item.value)) {
|
||||||
initialValue = item.value;
|
initialValue = item.value;
|
||||||
|
|
||||||
combo.combo('setSelectedOption', {
|
combo.combo('setSelectedOption', {
|
||||||
|
|
Loading…
Reference in New Issue