Search External Asset Owner (#1851)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-08-27 16:14:44 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent b50ac452f5
commit 10e84d1acb
11 changed files with 245 additions and 216 deletions
@@ -233,7 +233,11 @@ export class RunReportComponent implements OnInit {
formattedResponse[newKey] = value['id'];
break;
case 'date':
formattedResponse[newKey] = this.dateUtils.formatDate(value, this.settingsService.dateFormat);
if (this.isTableReport()) {
formattedResponse[newKey] = this.dateUtils.formatDate(value, Dates.DEFAULT_DATEFORMAT);
} else {
formattedResponse[newKey] = this.dateUtils.formatDate(value, this.settingsService.dateFormat);
}
this.reportUsesDates = true;
break;
case 'none':
@@ -254,10 +258,14 @@ export class RunReportComponent implements OnInit {
...userResponseValues,
};
if (this.reportUsesDates) {
let dateFormat = this.settingsService.dateFormat;
if (this.isTableReport()) {
dateFormat = Dates.DEFAULT_DATEFORMAT;
}
formData = {
...userResponseValues,
locale: this.settingsService.language.code,
dateFormat: this.settingsService.dateFormat
dateFormat: dateFormat
};
}
if (this.reportToBeExportedInRepository) {