Skip to content

Commit

Permalink
Merge pull request #9210 from camptocamp/backport/9209-to-master
Browse files Browse the repository at this point in the history
[Backport master] Don't send null values in the datasource
  • Loading branch information
sbrunner authored Aug 29, 2023
2 parents c8fa3f4 + 46e4d2b commit 94a7fb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/print/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,9 @@ export class PrintController {
return this.translate_(prop);
});
}
data.push(Object.keys(properties).map((key) => properties[key]));
data.push(
Object.keys(properties).map((key) => (properties[key] !== undefined ? properties[key] : ''))
);
});
if (columns.length) {
const datasourceObj = {
Expand Down

0 comments on commit 94a7fb2

Please sign in to comment.