mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-22947 Remove comments
This commit is contained in:
parent
914939c7d7
commit
6b4ad04d92
@ -306,11 +306,6 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
parseValue(json: any): any {
|
parseValue(json: any): any {
|
||||||
let value = Object.prototype.hasOwnProperty.call(json, 'value') && json.value !== undefined ? json.value : null;
|
let value = Object.prototype.hasOwnProperty.call(json, 'value') && json.value !== undefined ? json.value : null;
|
||||||
|
|
||||||
/*
|
|
||||||
This is needed due to Activiti issue related to reading dropdown values as value string
|
|
||||||
but saving back as object: { id: <id>, name: <name> }
|
|
||||||
Side note: Probably not valid anymore
|
|
||||||
*/
|
|
||||||
if (json.type === FormFieldTypes.DROPDOWN) {
|
if (json.type === FormFieldTypes.DROPDOWN) {
|
||||||
if (this.hasEmptyValue && value === null) {
|
if (this.hasEmptyValue && value === null) {
|
||||||
if (!this.emptyValueOption) {
|
if (!this.emptyValueOption) {
|
||||||
@ -341,11 +336,6 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
This is needed due to Activiti issue related to reading radio button values as value string
|
|
||||||
but saving back as object: { id: <id>, name: <name> }
|
|
||||||
Side note: Probably not valid anymore
|
|
||||||
*/
|
|
||||||
if (json.type === FormFieldTypes.RADIO_BUTTONS) {
|
if (json.type === FormFieldTypes.RADIO_BUTTONS) {
|
||||||
// Activiti has a bug with default radio button value where initial selection passed as `name` value
|
// Activiti has a bug with default radio button value where initial selection passed as `name` value
|
||||||
// so try resolving current one with a fallback to first entry via name or id
|
// so try resolving current one with a fallback to first entry via name or id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user