Skip to content

Commit

Permalink
Merge pull request #3591 from hefan/master
Browse files Browse the repository at this point in the history
Do not pass non persistent new records when sorting tables by removing non numeric ids
  • Loading branch information
kennyadsl committed Apr 20, 2020
2 parents 81d3090 + 74cdc64 commit 9b1f3c8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Spree.ready(function() {
var idAttr = el.id;
if (idAttr) {
var objId = idAttr.split('_').slice(-1);
positions['positions['+objId+']'] = index + 1;
if (!isNaN(objId)) {
positions['positions['+objId+']'] = index + 1;
}
}
});
Spree.ajax({
Expand Down

0 comments on commit 9b1f3c8

Please sign in to comment.