AAE-22947 Remove comments

This commit is contained in:
wiktord2000 2024-06-11 15:58:21 +02:00
parent 914939c7d7
commit 6b4ad04d92
No known key found for this signature in database

View File

@ -306,11 +306,6 @@ export class FormFieldModel extends FormWidgetModel {
parseValue(json: any): any {
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 (this.hasEmptyValue && value === null) {
if (!this.emptyValueOption) {
@ -341,11 +336,6 @@ export class FormFieldModel extends FormWidgetModel {
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) {
// 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