MXS-2984: Fix list listeners

Backported the changed from 2.5 to 2.3 and added a test case.
This commit is contained in:
Markus Mäkelä
2020-06-01 09:26:33 +03:00
parent ce437bc779
commit 2e1b0c5ddf
3 changed files with 12 additions and 2 deletions

View File

@ -197,7 +197,7 @@ module.exports = function() {
row = []
fields.forEach(function(p) {
var v = _.getPath(i, p[p.name], '')
var v = _.getPath(i, p.path, '')
if (Array.isArray(v) && typeof(v[0]) != 'object') {
v = v.join(', ')