Fix bug 661 - comparison bug in loop macro in HopObject.js
This commit is contained in:
parent
235a1342f8
commit
032d6dcae7
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ HopObject.prototype.loop_macro = function(param, collection) {
|
|||
if (param.sort) {
|
||||
var allitems = items.list();
|
||||
var test = allitems[0][param.sort];
|
||||
if (!test || isNaN(test)) {
|
||||
if (test == null || isNaN(test)) {
|
||||
var Sorter = String.Sorter;
|
||||
} else {
|
||||
var Sorter = Number.Sorter;
|
||||
|
|
Loading…
Add table
Reference in a new issue