Skip to content

Commit

Permalink
Fix primefaces#3548: Field data with dot in name
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 2, 2022
1 parent 8d8e3fd commit 1b7ed3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/utils/ObjectUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export default class ObjectUtils {
if (data && Object.keys(data).length && field) {
if (this.isFunction(field)) {
return field(data);
} else if (ObjectUtils.isNotEmpty(data[field])) {
return data[field];
} else if (field.indexOf('.') === -1) {
return data[field];
} else {
Expand Down

0 comments on commit 1b7ed3b

Please sign in to comment.