Commit 2dd8438a authored by jaapjansma's avatar jaapjansma
Browse files

Fixed issue with dropdown of retrieval of default data.

parent b1556d3b
Version 1.17 (not yet released)
============
* Fixed issue with dropdown of retrieval of default data.
Version 1.16
============
......
......@@ -212,15 +212,6 @@
});
});
};
$scope.restoreDefault = function(value,key){
// checks if the old value of the select list is still in the range
// of options. If so restore it
if($scope.default_data_fields.find(field => field.name===value)) {
$scope.formProcessor.default_data_output_configuration[key] = value;
}
}
});
})(angular, CRM.$, CRM._);
......@@ -15,7 +15,6 @@
crm-ui-id="defaultData.{{input.name}}"
crm-ui-select="{dropdownAutoWidth : true, allowClear: true}"
ng-model="formProcessor.default_data_output_configuration[input.name]"
ng-change="restoreDefault('{{formProcessor.default_data_output_configuration[input.name]}}',input.name)"
ng-required="false"
ng-options="field.name as field.label for field in default_data_fields track by field.name"
>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment