• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revisiónf6909ab6e796a3bfb551314795a131720950b927 (tree)
Tiempo2010-02-11 23:03:17
Autorgusagi <gusagi@704c...>
Commitergusagi

Log Message

Fix Bug #2949716 - The value of start and limit might be not corresponding between Criteria and PageNavi.

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@436 704cf05f-ae62-4b0e-a484-234ee0250e75

Cambiar Resumen

Diferencia incremental

--- a/docs/CHANGES.txt
+++ b/docs/CHANGES.txt
@@ -7,9 +7,12 @@ XOOPS Cube Legacy "Package_Legacy" & "XCube core" Changelog
77 - Fix Bug #2806101 - References to JP.XOOPS.ORG (removed by XOOPS Foundation).
88 - Fix Bug #2839172 - missing SSLLogin feature.
99 - Fix Bug #2884127 - typos about regular expressions.
10+- Fix Bug #2949716 - The value of start and limit might be not corresponding between Criteria and PageNavi.
1011
1112 [Staff]
1213 - GIJOE
14+- gusagi
15+- halt
1316 - kilica
1417 - Marijuana
1518 - Mikhail
--- a/html/modules/user/class/AbstractFilterForm.class.php
+++ b/html/modules/user/class/AbstractFilterForm.class.php
@@ -59,8 +59,18 @@ class User_AbstractFilterForm
5959
6060 function getCriteria($start = null, $limit = null)
6161 {
62- $t_start = ($start === null) ? $this->mNavi->getStart() : intval($start);
63- $t_limit = ($limit === null) ? $this->mNavi->getPerpage() : intval($limit);
62+ if ($start === null) {
63+ $t_start = $this->mNavi->getStart();
64+ } else {
65+ $t_start = intval($start);
66+ $this->mNavi->setStart($t_start);
67+ }
68+ if ($limit === null) {
69+ $t_limit = $this->mNavi->getPerpage();
70+ } else {
71+ $t_limit = intval($limit);
72+ $this->mNavi->setPerpage($t_limit);
73+ }
6474
6575 $criteria = $this->_mCriteria;
6676