Skip to content

Commit

Permalink
Fix widget last record crash when ID is in selected field
Browse files Browse the repository at this point in the history
  • Loading branch information
Syno committed Nov 7, 2019
1 parent 70cf73c commit ef6f4e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3336,6 +3336,7 @@ exports.createWidgetLastRecords = function (attr, callback) {
if (attr.columns[k].toLowerCase() == 'id') {
attr.columns[k] = {codeName: 'id', name: 'id', found:true};
kFound = true;
continue;
}
for (var i = 0; i < columns.length; i++) {
if (columns[i].codeName.indexOf('s_') == 0)
Expand Down

0 comments on commit ef6f4e1

Please sign in to comment.