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:
Matt Gilman 2015-01-23 13:56:12 -05:00
parent 43e646e68e
commit 2fb30c774c
1 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
if (propertyDescriptor.required === false) {
options.push({
text: 'No value',
value: null,
optionClass: 'unset'
});
}
@ -68,6 +69,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
if (options.length === 0) {
options.push({
text: 'No value',
value: null,
optionClass: 'unset',
disabled: true
});
@ -134,7 +136,7 @@ nf.ProcessorPropertyComboEditor = function (args) {
var propertyDescriptor = processorDetails.config.descriptors[item.property];
// select as appropriate
if (nf.Common.isDefinedAndNotNull(item.value)) {
if (!nf.Common.isUndefined(item.value)) {
initialValue = item.value;
combo.combo('setSelectedOption', {