主题 : orderBy无效 |
级别: 解元
![]() |
1# 发表于:2011-03-06 23:31:19 IP:122.4.*.*
|
||||
---|---|---|---|---|---|
级别: 解元
![]() |
3# 发表于:2011-03-07 11:42:55 IP:202.93.*.*
一个个的写是什么意思? 没有明白。。。 8以后的排序都下起作用~~~~没试过吗?
|
||
---|---|---|---|
级别: 解元
![]() |
5# 发表于:2011-03-07 13:04:30 IP:202.93.*.*
我的也是下载的3.0.4版本的。。
AbstractContentDirective这个类 protected int getOrderBy(Map<String, TemplateModel> params) throws TemplateException { Integer orderBy = DirectiveUtils.getInt(PARAM_ORDER_BY, params); if (orderBy == null || orderBy < 0 || orderBy > 8) { (搞不明白为啥>8就返回 0 那 大于8的排序不就没有啥用处了吗?严重bug) return 0; } else { return orderBy; } } 你看看这个源代码,8以后的就不排序了的。 |
||
---|---|---|---|
1
共1页