loggable not saving id fixed
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-04-05 08:23:16 +02:00
parent 4861b789f7
commit b4f9b2fc3b
1 changed files with 2 additions and 2 deletions

View File

@ -129,12 +129,12 @@ module.exports = function(Self) {
}
}
if (showField) {
if (showField && recordSet && recordSet[showField]) {
val = recordSet[showField];
break;
}
val = recordSet && recordSet.id; // FIXME preparar todos los modelos con campo name
val = recordSet && recordSet.id || val; // FIXME preparar todos los modelos con campo name
break;
}
}