Hi:
The main reason is that it not show up a field , I have a userData.js in /usr/share/ipa/ui/js/plugins/userData it show the label but no field to edit and save button not bring to save(freeipa ver4.5).
define([
'freeipa/phases',
'freeipa/user'],
function(phases, user_mod) {
// helper function
function get_item(array, attr, value) {
for (var i=0,l=array.length; i<l; i++) {
if (array[i][attr] === value) return array[i];
}
return null;
}
var emp_plugin = {};
// adds 'employeenumber' field into user details facet
emp_plugin.add_emp_number_pre_op = function() {
var facet = get_item(user_mod.entity_spec.facets, '$type', 'details');
var section = get_item(facet.sections, 'name', 'identity');
section.fields.push({
$type: 'Multivalued'
name: 'comDate',
label: 'Commencement Dare'
});
return true;
};