XOOPS Cube Legacy base repository
Revisión | f6909ab6e796a3bfb551314795a131720950b927 (tree) |
---|---|
Tiempo | 2010-02-11 23:03:17 |
Autor | gusagi <gusagi@704c...> |
Commiter | gusagi |
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
@@ -7,9 +7,12 @@ XOOPS Cube Legacy "Package_Legacy" & "XCube core" Changelog | ||
7 | 7 | - Fix Bug #2806101 - References to JP.XOOPS.ORG (removed by XOOPS Foundation). |
8 | 8 | - Fix Bug #2839172 - missing SSLLogin feature. |
9 | 9 | - 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. | |
10 | 11 | |
11 | 12 | [Staff] |
12 | 13 | - GIJOE |
14 | +- gusagi | |
15 | +- halt | |
13 | 16 | - kilica |
14 | 17 | - Marijuana |
15 | 18 | - Mikhail |
@@ -59,8 +59,18 @@ class User_AbstractFilterForm | ||
59 | 59 | |
60 | 60 | function getCriteria($start = null, $limit = null) |
61 | 61 | { |
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 | + } | |
64 | 74 | |
65 | 75 | $criteria = $this->_mCriteria; |
66 | 76 |