Bugfix/FOUR-16559: When I Quick-Fill a task, the signature is also filled and it is observed by the audit. by CarliPinell · Pull Request #6925 · ProcessMaker/processmaker

Expand Up @@ -428,6 +428,10 @@ class="card border-0" this.sendEvent('taskReady', this.task?.id); }); }, validateBase64(field) { const regex = /^data:image\/\w+;base64,/; return regex.test(field); }, }, mounted() { this.prepareData(); Expand All @@ -441,6 +445,7 @@ class="card border-0" screenFields.forEach((field) => {
const existingValue = _.get(this.formData, field, null);
let quickFillValue;
if (existingValue) { Expand All @@ -450,8 +455,14 @@ class="card border-0" // use the value from the quick fill(event.detail) quickFillValue = _.get(event.detail, field, null); }
if(this.validateBase64(quickFillValue)) { _.set(newData, field, existingValue); return; } // Set the value. This handles nested values using dot notation in 'field' string _.set(newData, field, quickFillValue);
});
this.formData = newData; Expand All @@ -461,6 +472,14 @@ class="card border-0" // want to use all data saved in the inbox rule db record, regardless // if the field exists or not. window.addEventListener('fillDataOverwriteExistingFields', event => { for (let key in event.detail) { if (event.detail.hasOwnProperty(key)) { let value = event.detail[key]; if (this.validateBase64(value)) { delete event.detail[key]; } } } this.formData = _.merge(_.cloneDeep(this.formData), event.detail); });
Expand Down