Permalink
Browse files

Fixed order listing page, and SmartList bug. Issue #256

  • Loading branch information...
1 parent 409eab7 commit 00eb2f11b41d46315ec86a89c5b3090454ea08e2 @gregmoser gregmoser committed Jul 14, 2011
Showing with 4 additions and 5 deletions.
  1. +2 −2 com/service/OrderService.cfc
  2. +1 −1 com/utility/SmartList.cfc
  3. +1 −2 version.txt
@@ -69,8 +69,8 @@ component extends="BaseService" persistent="false" accessors="true" output="fals
smartList.addSelect("systemCode","id");
smartList.addSelect("type","name");
smartList.addFilter("parentType_systemCode","orderStatusType");
- smartList.addFilter("systemCode","ostNew,ostProcessing,ostOnHold,ostClosed,ostCancelled");
- return smartlist.getPageRecords();
+ smartList.addFilter("systemCode","ostNew,ostProcessing,ostOnHold,ostClosed,ostCanceled");
+ return smartlist.getRecords();
}
public any function searchOrders(struct data={}) {
@@ -538,7 +538,7 @@ component displayname="Smart List" accessors="true" persistent="false" output="f
}
// If no search criteria then we can speed up the process by setting the pageRecords using ormExecuteQuery with offset & maxRecords
} else {
- variables.pageRecords = ormExecuteQuery(getHQL(), getHQLParams(), false, {offset=getPageRecordsStart(), maxresults=getPageRecordsShow(), ignoreCase="true"});
+ variables.pageRecords = ormExecuteQuery(getHQL(), getHQLParams(), false, {offset=getPageRecordsStart()-1, maxresults=getPageRecordsShow(), ignoreCase="true"});
}
}
View
@@ -1,2 +1 @@
-
-1.0.0.RC-5-g722cbc0
+1.0.0.RC-6

0 comments on commit 00eb2f1

Please sign in to comment.