Signed-off-by: Bill Erickson <berickxx@gmail.com>
// Slightly better than a bare 't' or 'f'.
// Should probably add a global true/false string.
return Boolean(
- value === 't' || value === 1 || value === '1'
+ value === 't' || value === 1 ||
+ value === '1' || value === true
).toString();
default:
if (!field.label) {
field.label = field.name;
}
+
+ // Coerce 'aou' links to datatype org_unit for consistency.
+ if (field.datatype === 'link' && field.class === 'aou') {
+ field.datatype = 'org_unit';
+ }
});
return x;